Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on datasessions
Message
From
16/09/2009 13:36:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Question on datasessions
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01424766
Message ID:
01424766
Views:
114
To create a certain report, one form calls a program - I believe the program would share the same DataSession with the form.

The program then calls another form, which shows some options for the user to select (for now, only the desired destination).

Since some of the data was prepared in the previous form or program, I want to share the DataSession; I gave the commands:
* Form.Init()
lparameters... toForm
ThisForm.DataSessionId = toForm.DataSessionId
... where toForm is the calling form.

This works, but I wanted to ask whether this is considered the correct approach.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Next
Reply
Map
View

Click here to load this message in the networking platform