Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable name Cursor
Message
From
27/06/2001 12:02:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00524217
Message ID:
00524230
Views:
16
This message has been marked as the solution to the initial question of the thread.
>Hi again!
>
>I was trying to code up a SQL Select that outputs to a Cursor whose name changes each time you use it.. (like in a report, so as to eliminate collisions when used in a group environment.)
>
>(I'm using FPW 2.6 for this one)
>
>How to do it? I tried....
>
>lcCursor1 = SYS(3)
>
>SELECT * FROM master INTO CURSOR (lcCursor1)....
>
>or....
>
>SELECT * FROM master INTO CURSOR &lcCursor1
>
>and get a SYNTAX ERROR on the use or () or & on the lcCursor1 name.
>
>Any ideas?? Thanks in advance!!
>
>Tommy

A cursor name can't start with a digit. Try using sys(2015).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform