Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: new DB empty record
if you save a record, but add a new database entry, you don't get these lines.
Is this a bug? If not, how should I erase the ,, after I have created my entry?
Here is some sample code - delete the file if it exists! If you uncomment the 2 lines below you get a line with the extra ,,
AddExtender("laffd34i.dll") handle = dbOpen ("C:\TEMP\A.CSV",1,2,2,0,",","") ret = dbNameColumn(handle, 1, "TEST1") ret = dbNameColumn(handle, 2, "TEST2") ret = dbSave (handle, "C:\TEMP\A.CSV", "") ;ret = dbClose(handle) ;handle = dbOpen ("C:\TEMP\A.CSV",1,2,2,0, ",","") record = dbMakeNewItem(handle, 1) ret = dbSetRecordField(handle,record,1,1,"FIELD1") ret = dbSetRecordField(handle,record,2,1,"FIELD2") ret = dbSave (handle, "C:\TEMP\A.CSV", "") ret = dbClose(handle)
If you save the database before filling in the contents of the empty record, then, yes, you get a empty record where all you can see is the delimiter.
Article ID: W15053
File Created: 2002:09:05:13:49:20
Last Updated: 2002:09:05:13:49:20