Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot change cursor column name
Message
From
12/01/2017 10:17:04
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01646543
Message ID:
01646587
Views:
39
>
>I am sure that VFP team will fix it in version 10.0 :).

It's not a bug. The structure of cursors can not be modified by a program, tables' can.

>
>As to why?. I have to populate this cursor from a json I get in Web API. The method I use from West Wind Client Tools requires that the cursor has exactly the same names as the names in the json. And this json has a name "Description". So I have to get it into a cursor with this name and then change it to something less than 10 char. Because I need to save this cursor as a free table to the drive. And when you save a cursor with a field name longer than 10 char, it cuts the name to 10 char (becomes DESCRIPTIO).

If you need field names longer than 10 characters, and require a permanent storage for the data you're getting from the Web Service, then save the data to tables belonging to a database, so that you can define the table with extended field names.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform