Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug about select command
Message
From
27/12/2006 08:13:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/12/2006 08:08:34
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01180172
Message ID:
01180435
Views:
34
>>>run that code:
>>>it gives error "alias name is already use"
>>>
>>>
>>>CREATE TABLE test (testfld c(10))
>>>USE
>>>USE test ALIAS atest
>>>SELECT * FROM atest INTO CURSOR test
>>>
>>
>>Metin,
>>I agree that it's a bug but one that you could workaround by nofilter and use again.
>>Cetin
>
>Of course there're a lot of workaround. I did that one:
>
>
>Select * From stok,kodlar Where stok.kod=kodlar.stokkodu Into Cursor jstok Select stok
>Use
>
>Select jstok
>Dimension xxx(1)
>Afields(xxx)
>
>Create Cursor stok From Array xxx
>Append From Dbf("jstok")
>
I meant an easier one:) Using plain afields() to create a cursor with same structure is dangerous.
select * from customer into cursor xx nofilter
use in 'customer'
use dbf('xx') in 0 again alias 'customer'
use in 'xx'
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
Next
Reply
Map
View

Click here to load this message in the networking platform