Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can we use PACK in Network ?
Message
 
To
10/01/1999 21:31:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174552
Message ID:
00174998
Views:
23
You can also use FOPEN() which returns -1 on error.
Trap this error using FERROR(). This way you need not write any dummy error handler.


>I have complied VFP program for using in network.
>So, I used "set excl on" in the start of my progrma.
>When the user quite program, I would like VFP check that user
>that he is the last one in the network or not ?
>If yes, I would like "PACK" command launch.
> Which command can I use for checking how many user in the network and How can we change "set excl on" to "off" in the network.
>eg. my code
> If QUIT = 'yes'
> close database
> clear events
> set sysmenu to defa
> CLOSE ALL
> IF DAY(DATE()) = 1
> A=DATE()-90
> SET EXCL ON
> SELE 1
> USE SALE
> DELE ALL FOR SALDATE >= A
> PACK
> ENDIF
> ......
> ......
>
>For this sample I have trouble that error "Database access deny" I thinks it is so because at the begining of my program I use "set excl on"
> Thanks for your time.
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform