Problems saving tables in files
Posted: Mon May 25, 2020 2:01 pm
I have this code to save several dates from one table inside of one file called iConecta.prefs:
saveconfigtable[0]=Lengua$
saveconfigtable[1]=Skin$
saveconfigtable[2]=Sonido$
saveconfigtable[3]=Time$
saveconfigtable[4]=DestinoOWB$
saveconfigtable[5]=AskCookie$
OpenFile(1, "iConecta.prefs", #MODE_WRITE)
WriteTable(1, saveconfigtable)
CloseFile(1)
The problem is when I save several times the file if I make a change the contiguous fields instead of to save the current valour, are save with an empty string or the field not is possible read.
I tryed to again give the field valour before to upload but the problem continue, I see that this problem with two fields don't exist.
Where is the problem?
saveconfigtable[0]=Lengua$
saveconfigtable[1]=Skin$
saveconfigtable[2]=Sonido$
saveconfigtable[3]=Time$
saveconfigtable[4]=DestinoOWB$
saveconfigtable[5]=AskCookie$
OpenFile(1, "iConecta.prefs", #MODE_WRITE)
WriteTable(1, saveconfigtable)
CloseFile(1)
The problem is when I save several times the file if I make a change the contiguous fields instead of to save the current valour, are save with an empty string or the field not is possible read.
I tryed to again give the field valour before to upload but the problem continue, I see that this problem with two fields don't exist.
Where is the problem?