PBDR.COM

About   -   Contact   -   Purchase   -   Search   -   What's New

 
 
Datastore/Datawindow Does Not Work in EXE
When you use code like the following:
DataStore lds_DS

lds_DS = CREATE DataStore
lds_DS.DataObject = "d_data"
lds_DS.SetTransObject( SQLCA )
lds_DS.Retrieve
DESTROY lds_DS

or

dw_1.DataObject = "d_data"

Then you are dynamically referencing the d_data object so that when PowerBuilder creates your EXE it will not include the Datawindow. The same as when you dynamically associate a Datawindow to a DWControl you also need to include the datawindow in a PBR or move it into a PBD.

 

Top of Page

Legal Notice

Ken Howe 2011