DefineData( datastore customdict string Definition[] ) return integer- Syntax 2

Define a custom Data Dictionary based on the specified definition .
The specified datastore will be automatically created if needed, avoiding to write the classical CREATE line of code. If it is already instantiated, its actual content will be cleared and its current definition will be overwritten by the new one.

Usage:

... 
datastore lds_Customer
if #.DefineData( { lds_customer, "customer:string(60)","invoice:long","payed:string(1)"} ) = -1 then return -1
...

Last edited Oct 25, 2015 at 9:52 PM by domangep, version 2