Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass a cursor to a form which has Private Datasession
Message
 
 
To
26/01/2005 20:34:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00981060
Message ID:
00981063
Views:
34
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform