Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you create a cursor with an alias?
Message
From
30/10/1997 09:08:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00057358
Message ID:
00057366
Views:
27
>can you create a cursor with an alias so that use can refer to itby an alias name like: "sele thisalias"

Hi Tim,

If you create using CREATE CURSOR, the name you give it is the alias, i.e. in

CREATE CURSOR MyCursor . . .

"MyCursor" is the alias

If you create it using a SELECT statement, you assign it the alias name in the statement, i.e. in

SELECT * FROM MyTable INTO CURSOR MyCursor NOFILTER

"MyCursor" is the alias
( NOFILTER forces creation of actual cursor, not a filter on original table )

If you want, you can use it again with another alias, i.e.

USE DBF( "MyCursor" ) IN 0 AGAIN ALIAS MySecondCursor

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform