Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method that fires before the data session is selected?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01309739
Message ID:
01309769
Views:
8
When doing the test in a form with a private data session it is always shown as in use because it is in use in the 1st data session. Is there anyplace in the form code can be run before the form selects the private data session?

You can use code like this in the form's Init():
lnDS_ID = SET( "DATASESSION" )
SET DATASESSION TO 1
IF USED( "WhatEver" )
  *** the table is in use
ENDIF
SET DATASESSION TO lnDS_ID
Previous
Reply
Map
View

Click here to load this message in the networking platform