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 19:11:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00057358
Message ID:
00057508
Views:
30
>>can you create a cursor with an alias so that use can refer to itby an alias name like: "sele thisalias"
>Timothy,
>
>The name you give a cursor is its alias;
>
> CREATE CURSOR MyCursor ...
>
>will create a temporary table on disk named something like C:\temp\1283456.dbf and open it with the alias MyCursor.
>
> SELECT Blah FROM Blah, BlahA WHERE whatever INTO CURSOR MyResult
>
>will create a temporary table on disk named something like C:\temp\1283456.dbf and open it with the alias MyResult.

In none of these cases you can be sure that a temp file is created. VFP decides internally if the cursor is written in a file on disk or if it's kept in the memory.

In both of these cases, if the cursor is written to disk, the file extension is .tmp and not .dbf.

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform