foxprox558
Programmer
Hello, again. Regarding my previous program, I need a way to create a kind of a table inside of a table, I know in oracle it is called a struct. Please help
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
lcStruct = "Mike" + SPACE(8) + DTOC({^2013-12-16})
lcName = LEFT(lcStruct, 12)
lcDate = CTOD(RIGHT(lcStruct, 4))
[Section 1]
key1=value1
key2=value2
[Section 2]
key3=value1
key4=value2
struct account {
int account_number;
char *first_name;
char *last_name;
float balance;
};
oAccount = CreateObject("Collection")
oAccount.additem(123456,"account_number")
oAccount.additem("Olaf,"first_name")
oAccount.additem("Doschke,"last_name")
oAccount.additem(1000000,"balance")
oAccount = CreateObject("Empty")
AddProperty(oAccount,"account_number",123456)
AddProperty(oAccount,"first_name","Olaf")
AddProperty(oAccount,"last_name","Doschke")
AddProperty(oAccount,"balance",1000000)
Create Cursor curAccounts (account_number int, first_name V(50), last_name V(50), Balance B)
Isert Into curAccounts Values (123456,"Olaf","Doschke",1000000)