VFP9 SP2
Various machines.
Tables in DBC files
I have an App (POS application), that syncs the dbf files with our corporate server via FoxWeb.
the way i sync is this:
i take the records that are marked to be sync'd and i convert them to xml:
on the server side, i get the xml post and i conver them from xmlto cursor
i get the xml from the request.form('xml') and i filetostr it to a file etc..
then:
this code fails alot since some of the records have some wierd characters from data entry people. like chr(2) or chr(13) or chr(9) ..
is there a way to make it work and strip out wierd characters?
i did:
but, behold, some other wierd character will show up unexpectedly once in a while,....
thoughts?
Ali Koumaiha
TeknoSoft Inc.
Michigan
Various machines.
Tables in DBC files
I have an App (POS application), that syncs the dbf files with our corporate server via FoxWeb.
the way i sync is this:
i take the records that are marked to be sync'd and i convert them to xml:
Code:
lcfile = SYS(2015)+".xml"
CURSORTOXML(lcCursor, lcfile, 1, 512, 0, "1")
on the server side, i get the xml post and i conver them from xmlto cursor
i get the xml from the request.form('xml') and i filetostr it to a file etc..
then:
Code:
xmltocursor(lcFile,'ToSync',512)
this code fails alot since some of the records have some wierd characters from data entry people. like chr(2) or chr(13) or chr(9) ..
is there a way to make it work and strip out wierd characters?
i did:
Code:
lcXML = strtran(lcXML,chr(2),'')
lcXML = strtran(lcXML,chr(9),'')
lcXML = strtran(lcXML,chr(0),'')
but, behold, some other wierd character will show up unexpectedly once in a while,....
thoughts?
Ali Koumaiha
TeknoSoft Inc.
Michigan