Home > Archive > FoxPro Help and Support > January 2006 > Set Commands scoped to current datasession









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Set Commands scoped to current datasession
Peter

2006-01-26, 5:01 pm

Is there a way to work around the scope limitation of the set commands? For
example, I want the separator to be . for the entire application regardless
of datasession.

Thanks for any help.
Dan Freeman

2006-01-26, 5:01 pm

You'll have to set it in each datasession.

Most of us have a class that does this in INIT:
1) Remembers the old setting
2) Sets the preferred setting

And in Destroy:
Puts back the old setting

We instantiate this in each datasession. (In fact, my session subclass does
ONLY this beyond native behavior of session.)

Dan

Peter wrote:
> Is there a way to work around the scope limitation of the set
> commands? For example, I want the separator to be . for the entire
> application regardless of datasession.
>
> Thanks for any help.



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com