by Eoeo » Sun Aug 26, 2012 10:14 pm
Good I understood
it is not possible I can erase and save a new file
Another
at init I have a problem
If the file INI have another sections and not HAve the section [Cars] the procedure to count entries not work
I saw you insert a new value But I cannot make as you made
but I made on another mode :
Local cSection:= "Cars"
aEntry := StrTran(GetPVProfString(cSection, , ,cInifile), Chr(0), CRLF)
IF EMPTY(aEntry)
return {}
ENDIF
// Found the Entries
for nI:=1 to LEN(aEntry)
AADD(aString, MemoLine( aEntry,, nI ) )
next
//string
for nI:=1 to LEN(aEntry)
AAdd( aEntries, GetIni( cInifile, cSection, aString[nI]) )
next
// create the array for the xbrowse entries|strings
for nI:=1 to LEN(aEntry)
AAdd( aCars,{aString[nI],aEntries[nI]})
next
@ 30, 10 XBROWSE oLbx OF oDlg ;
SIZE 185,100 PIXEL
oLbx:SetArray(aCars)
IF I not have entries it not run !!
how I canmake to resolve it ?