Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default data sessions etc

Status
Not open for further replies.

Bertiethedog

Programmer
Feb 8, 2007
118
GB
If I set the datasession to private and all the subsiduary forms have the datasession set to default, will the subsiduary forms have access to the calling forms tables or do they need to be reopened and the record pointers reset.

Regards

Richard
 
Richard,

It depends what you mean by "subsidiary forms".

If you mean that a form called by one that has private data session, then the answer is Yes.

In other words, suppose Form A has a private data session. It opens the Customer table, sets the index to ID, and moves the record pointer to record 30.

Form A then calls Form B, which has a default data session. Form B will see that Customer is open, its index is ID, and it is sitting on record 30. If Form B moves the record pointer, Form A will see that change.

Does that cover the situation you had in mind?

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thank you all, I thought that was the case

Regards


Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top