General information
Category:
Coding, syntax & commands
Title:
CURSORTOXML call causes controls to loose value.
FormA (private datasession) contains a pageframe with different controls on each page that have control source values of a cursor "myCursor".
The intent is to send the current values of this cursor to another FormB (private datasession) by passing this XML doing the following:
Cursortoxml('myCursor','lcCursorInfo',1,8,0,'1','')
Do From FormB with lcCursorInfo
Form B receives the XML and processes correctly.
However, when Form get the focus again, the controls on the pageframe pages seem to loose their values. However, the cursor still has its correct values.
If I do the following:
Select * from myCursor into cursor myDuplicate
Cursortoxml('myDuplicate','lcCursorInfo',1,8,0,'1','')
Do From FormB with lcCursorInfo
everything is fine and returning focus to Form A is okay as well.
I am puzzled as to why the first case gives a problem.
Thanks in advance
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only