Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CURSORTOXML call causes controls to loose value.
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
CURSORTOXML call causes controls to loose value.
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00994125
Message ID:
00994125
Vues:
52
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
Fil
Voir

Click here to load this message in the networking platform