Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select
Message
From
18/08/2009 09:16:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/08/2009 07:53:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Select
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01418618
Message ID:
01418637
Views:
76
This message has been marked as a message which has helped to the initial question of the thread.
>hi all,
>i try to run this code below , i get error message mycur,mycur2 not found
>
>if i change the cursor to table it works
>
>
>SELECT c as  name1,d as title1,e as dept,h as office  FROM ad INTO cursor MYcur
>
>
>thisform.text1.Value=""
>thisform.text1.Value=GETFILE('xls')
>IMPORT FROM (thisform.text1.value)  TYPE XL8 
>SELECT b as  name1,c as job  FROM emp_report INTO cursor MYcur2
>
>
>SELECT  TAlias1.name1,TAlias1.title1,TAlias1.dept,TAlias1.office,TAlias2.job FROM MYcur TAlias1, MYcur2 TAlias2 ;
>**i try as (MYcur) TAlias1, (MYcur2) TAlias2 ;&&not work
>        WHERE  ALLTRIM(TAlias1.name1) = ALLTRIM(TAlias2.name1);     
>                        ORDER BY dept,job; 
>                           INTO cursor TAliascursor1
>
>
>
>thanks

1) Add

select 0

before Import ... line

2) Remove parentheses from myCur and myCur2

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform