iOS Question Saving csv file using iStringUtils Problem

walterf25

Expert
Licensed User
Longtime User
Hi All, i need to read data from a database table and save it as a csv file, i am using the iStringUtils Library but i'm getting the following error:
Error occurred on line: 248 (DailyLog)
-[__NSCFString Get:]: unrecognized selector sent to instance 0x2818aa220
Stack Trace: (
CoreFoundation 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 1227356
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 193960
CoreFoundation 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 1243892
CoreFoundation _CF_forwarding_prep_0 + 92
VisiLet -[iStringUtils SaveCSV2:::::] + 836
VisiLet -[iStringUtils SaveCSV::::] + 96
CoreFoundation 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 1252384
CoreFoundation 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 7472
VisiLet +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
VisiLet -[B4IShell runVoidMethod] + 232
VisiLet -[B4IShell raiseEventImpl:method:args::] + 1800
VisiLet -[B4IShellBI raiseEvent:event:params:] + 1580
VisiLet __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib B9D95EAB-9269-367D-B2F4-C2B45821A32D + 374288
libdispatch.dylib B9D95EAB-9269-367D-B2F4-C2B45821A32D + 377220
libdispatch.dylib B9D95EAB-9269-367D-B2F4-C2B45821A32D + 258892
CoreFoundation 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 693732
CoreFoundation 7519E999-1053-3367-B9D5-8844F6D3BDC6 + 673240
CoreFoundation CFRunLoopRunSpecific + 464
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 1936
VisiLet main + 124
libdyld.dylib 7B531A15-3E73-3185-90E2-B88D9476DA5E + 4960
)

My code is the following:
SaveCSV:
su.SaveCSV(File.DirDocuments, "DailyLogs.csv", ",", dailylogs)
''dailylogs is the list of columns returned from the database

At the moment i only have one row of data in the db and the content looks like this:
Row content:
column #1: 02/21/2020
column #2: 1.15
column #3: 5
column #4: 8

I'm not sure what's going on, the error happens exactly at the su.SaveCSV line, any ideas what the problem might be?

Thanks,
Walter
 
Top