Support
One-on-One consulting and assistance based on your specific and unique needs
Get the help you need from the experts at Nioxus. Contact Us >
Get the help you need from the experts at Nioxus. Contact Us >
Media
Keep up to date with Nioxus tips, tricks and products
Get the help you need from the experts at Nioxus. Contact Us >
Support
Receive discounts if you have a membership
Media
Learning about Nioxus and a few of our clients
Get the help you need from the experts at Nioxus. Contact Us >
Last week we saw an example of what kinds of code can be used for creating a new record in a table. But how can I return different values from it?
In this first example I show how to return a single value – the ID number of the newly created record:
let xReturn := do as server
let xRec := 0;
(create ‘Test Table’).(
xRec := number(Id);
‘Text field’ := “New”
);
xRec
end;
popupRecord(‘Test Table’, xReturn)
Here is how I return multiple values from the new record and then retrieve one of them. I can retrieve any of the values in this way:
let xReturn := do as server
let xRec := 0;
let xName := “”;
let xAge := 0;
(create ‘Test Table’).(
xRec := number(Id);
Name := “Jon”;
xName := Name
);
{
RecordID: xRec,
Name: xName
}
end;
xReturn.Name