Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor not being created
Message
From
10/12/2009 20:21:08
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01438479
Message ID:
01438522
Views:
50
>Hi:
>I have the following problem. I have an SQL statement something like this:
>
>cSelectStat = "select "+lcfields +;
> " FROM a "+;
> " left Join b On b.fieldpk = a.fieldfk "+;
> " left Join c On c.fieldpk = b.fieldpk "+;
> " left Join d On d.fieldpk = c.fieldpk "+;
> " left Join e On e.fieldpk = d.fieldpk "+;
> " left Join f On f.fieldid = e.fieldpk "+;
>
>&cSelectStat into cursor curtemp readwrite
>
>select curtemp
>
>And it returns me an error like this after executing the last statement: File ‘curtemp.dbf’ does not exist.
>Is this a setting in FoxPro that I’m missing or something? Are there any instances it will fail to create a cursor? From what I understand that even the records set return no records that cursor still exist.
>

Just want to point out that if the query runs, you don't need the SELECT. The newly created cursor is automatically selected. What happens if you add a BROWSE after running the query?

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform