Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace cursor
Message
From
02/02/2003 07:02:49
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Replace cursor
Miscellaneous
Thread ID:
00748127
Message ID:
00748127
Views:
76
Who can help me?
I have command button which working whith more then 20 cursors (query command).
I have to run this command again and again (for example on seperate dates).
The problem is that if the cursor existed I get message 'Alias name is already in use' (Error 24).
I have two options:
1. To start the code with the following commands:
if used ('cursor1')
use in cursor1
endif
if used ('cursor2')
use in cursor2
endif...
2. To start the code with 'close all'.
The problem with the first option is that I have to use with about 50 lines for to prevent the problem, and with the second option I have other problem (Fore example loosing my combo boxes row source, my oApp etc...).
How can I say simply 'If the cursor existed, replece it with the new one'?
Thank you for answer
Thank you
Chaim
Next
Reply
Map
View

Click here to load this message in the networking platform