| InfoToday Tools for Visual Rams |
| Quick Example |
Although the following example is simplified it shows how easy it is to use the ITRDS.
Create the object
loITRDS = CreateObject("ITRDS.RP_CLIENT")
Set the connection - The method used to talk to the Rams data (eg Local or HTTP)
loITRDS.SetConnection("MYHTTP")
Set the system - The Rams system on this connection
loITRDS.SetSystem("MYSYSTEM")
Load the customer record - Use the account number to do this
loITRDS.OCUSTOMERS.Load("2744262")
Access existing information
lcOldBillingName = loITRDS.OCUSTOMERS.oData.Name
Change information
lcNewBillingName = "Bill Harris"
loITRDS.OCUSTOMERS.ADDFIELDVALUE("NAME",lcNewBillingName)
Save Data
loITRDS.OCUSTOMERS.Save()
This is all it takes to access information from within any COM compliant development platform.
In the rest of this section you will learn more detail on the above methods and also some more complex scenarios