Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data sessions/buffering
Message
 
To
29/12/1997 20:01:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00068339
Message ID:
00068364
Views:
25
>Ah, welcome to private data sessions <s>! You're right, they ARE the way to go, but they take a little setup work.
>
>1. Do use private datasessions IMHO
>
>2. I set my buffer mode to my default choice of 3 in my form's init event (which fires after the tables are opened). If any cursor needs different buffering (I always use some kind of buffering) then I set it in the data environment and skip that one in my routine. (Just my convention.)
>
>3. I set my SET variables in my form's load event. Rather, I call my set variable routine there, because the tables are not yet open, which affects SET DELETED--or did in 3.0 anyway! Many SET variables are scoped to the data session, so, as with TALK, they do, indeed get reset. The online help will list them. Search on, oh, maybe, environment variables...
>
>4. The dataenvironment has a few nifty methods and properties: AutoOpenTables, AutoCloseTables, BeforeOpenTables, and AfterCloseTables. Read about them--they can be very useful little buggers. Unless you tell it different, the tables will be closed when you release the form, which you *probably* want if you're using private datasessions.
>
>One question you'll want to ask yourself--maybe--is do you want the user's to be able to open multible instances of the same form?
>
>Good luck!
>

Thanks for your help!:)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform