Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor from array command doesnt work??
Message
From
03/01/2003 11:15:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00737698
Message ID:
00737704
Views:
14
>I have this line of code which seems to work fine in vfp7, but fails in vfp8.
>
>CREATE CURSOR Fieldnames FROM ARRAY aMapFields
>
>aMapFields looks like this:
>[1,1] = 'Field1'
>[1,2] = 'N'
>[1,3] = 7
>[1,4] = 0
>[2,1] = 'Field2'
>[2,2] = 'N'
>[2,3] = 3
>[2,4] = 0
>...and so on. I'm only using the first 4 pieces of the array. What happens is I get an error saying "Field name is a duplicate or invalid". Well I'm sure there are no duplicated or invalid field names, and as I said it runs fine in VFP7, but I get this error in VFP8. Anyone have any ideas?

It works. Would you provide exact code that's not working.
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