Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass a cursor to a form which has Private Datasession
Message
 
 
À
26/01/2005 20:34:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00981060
Message ID:
00981063
Vues:
36
Jim,

You can pass it as XML with help of CURSORTOXML() and XMLTOCURSOR().
CREATE CURSOR mycursor (classID I, YN C(1))
INSERT INTO mycursor VALUES (1, "Y")
INSERT INTO mycursor VALUES (2, "N")
lcXml = ""
CURSORTOXML("mycursor", "lcXml", 1, 0, 0, "1")
XMLTOCURSOR(lcXml, "mynewcursor")
>Beginning to learn about private datasessions ---
>
>I have a problem with the interaction of two forms, both of which have private datasessions.
>
>Form A shows a grid with calculated data for all parts in our system. All parts are assigned a "class ID". There is a simple cursor which allows the user to select which class IDs are visible. (Only two fields in this cursor: class ID and Y/N flag).
>
>The user can invoke Form B from a pop-up menu. This form contains the relevant information which is editable for each part.
>
>What I'd like to be able to do is to have the list of items in Form B that appear to be the same as those as the user saw on Form A. I don't know how to do this, as I don't know how to pass my simple two-field cursor from Form A to Form B.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform