Good morning!
Is it possible to create a datawindow at runtime and pass it as a parameter to another function or event?
Thanks!
Good morning!
Is it possible to create a datawindow at runtime and pass it as a parameter to another function or event?
Thanks!
The Datastore object has a Create method that allows you to have a Datawindow object built from a string.
Build the DW syntax string in one window, pass the string to the other window and then create it into a local datastore.
In most cases you'll want to use a Datastore object instead. If you absolutely must create a DW reference at runtime you can open an invisible window and get a valid DW like this:
window wdummy
datawindow dw
Open(wdummy)
wdummy.hide()
dw = create datawindow
wdummy.openuserobject( dw )
dw.dataobject = 'd_whatever'
dw.settransobject( ... )
dw.retrieve(...)
// Do stuff
wdummy.closeuserobject( dw )
close( wdummy )
Hi Marco;
Yes & No...
HTH
Regards .. Chris