| InfoToday Tools for Visual Rams |
| For FoxPro programmers |
loITRDS.OWORKORDERS.query("select * where account = ' 2744262'","",1)
lcQueryXML = loITRDS.OWORKORDERS.cResultXML
loDataConvert = Createobject("IT_Dataconvert")
loDataconvert.xmlwithschematocursor(lcXML,"table")
The above method will create a FoxPro cursor from the XML. If you want to include indexes from the source table then use the LoadTable method as follows
loITRDS.OWORKORDERS.LoadTable("account = ' 2744262'",,,1)
lcQueryXML = loITRDS.OWORKORDERS.cResultXML
loDataConvert = Createobject("IT_Dataconvert")
lGetIndexes = .t.
lSuccess = loDataconvert.xmlwithschematocursor(lcXML,"table",,lGetIndexes)
This will create a cursor along with all the indexes that are on the source table back in Rams