Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
CURSORTOXML call causes controls to loose value.
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement