↧
When you mention 'global datasession', is that global to all forms for a users or global for all forms for all users? Will calling SQLEXEC(conn,sql,'cursor1') for user1 have any impact on user2?
If I adapt this code to a Call back method will the "cursor1" be available in my Call Back method?
If yes, can I create a cursor to make vars available in my Call back methods (instead of storing them to form and setting .wcPropSave) ?
If no, I am in trouble.
SQLEXEC(iConn,"Select var1, var2, var3 from table1","cursor1") IF messagebox("Do something?",36,"") = 6 SQLEXEC(iConn,"Update table1 set var3 = 'xxx' where var1 = ?cursor1.var1") ENDIF
thisForm.wMessageBox (CallBack, eMessageText [, nDialogBoxType ][, cTitleBarText][, nTimeout][,oVars])
Then have in the wFormCallBack()
LPARAMETERS luUserChoice, loVars
I am finding when I am moving my code into wFormCallBack methods there are variables initialed earlier in the original procedure that I need access to. Being able to pass an object containing my variables would be nice.
What is the suggested way to store them currently? Adding a property on the form?