Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharedata() Function

Status
Not open for further replies.

theone20012k1

Programmer
Aug 24, 2004
1
0
0
US
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 !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top