theone20012k1
Programmer
I have a Datawindow that I have tried to break up into 3 seprate tab pages and i am tring to use sharedata() function . I belive that my code is good. My true questions lies in, is there a certin format that the Datawindows have to been to share the data
here is the code of the open event
tab_1.tabpage_1.dw_1.SetTransObject(SQLCA)
tab_1.tabpage_1.dw_1.Retrieve()
long li_ret
li_ret = tab_1.tabpage_1.dw_1.ShareData(tab_1.tabpage_2.dw_2)
if li_ret <> 1 then messagebox("Sharedata error","Error Sharing to Summary DW",exclamation!)
i_ret = tab_1.tabpage_1.dw_1.ShareData(tab_1.tabpage_3.dw_3)
if li_ret <> 1 then messagebox("Sharedata error","Error Sharing to Details DW",exclamation!)
and it returns -1 and fails !!
here is the code of the open event
tab_1.tabpage_1.dw_1.SetTransObject(SQLCA)
tab_1.tabpage_1.dw_1.Retrieve()
long li_ret
li_ret = tab_1.tabpage_1.dw_1.ShareData(tab_1.tabpage_2.dw_2)
if li_ret <> 1 then messagebox("Sharedata error","Error Sharing to Summary DW",exclamation!)
i_ret = tab_1.tabpage_1.dw_1.ShareData(tab_1.tabpage_3.dw_3)
if li_ret <> 1 then messagebox("Sharedata error","Error Sharing to Details DW",exclamation!)
and it returns -1 and fails !!