Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I drop it?
Message
De
02/12/2013 09:45:53
 
 
À
02/12/2013 07:36:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01588891
Message ID:
01589044
Vues:
69
>>>>I created a cursor. I did some additional processing after that cursor was created. Now there's a column I don't need anymore.
>>>>
>>>>How do I get rid of that column?
>>>>
>>>> I tried the following
>>>>
>>>>ALTER table NameOfCursor drop column NameOfColumn
>>>>
>>>>Didn't work.
>>>>Error 1115 : Invalid operation for the cursor.
>>>>
>>>>Is the only solution creating another cursor and selecting only the needed columns from the original cursor?
>>>
>>>
>>>The reason why you cannot is : the cursor contains a field with a name longer than 10 chars
>>>
>>>See message#1459597
>>
>>I was about to post similar response. I got burned on that one myself.
>>Normally I never use field names longer then 10 chars. Problem was that I had one of those to be 11 - entered by mistake.
>
>
>
>> Normally I never use field names longer then 10 chars
>Then this is worth looking at

It is indeed enjoyable/relaxing light weight read but I do not understand how it is related to
using long field names (and all the problems associated with it) within VFP ?

I support 100% long and descriptive Procedure/Class/Method/Variable names in vfp but I am
AGAINST using long field names in VFP. For simply practical reasons nothing else.
Who ever used/uses local cursors extensively, must have already or sooner/later WILL experience
one problem or another. As you sure know, long table names are latecomers in xbase / VFP world, so I am not sure that
all VFP commands/functions are 100% updated/debugged to properly process them.
Create Cursor / alter table alias() is one example.

I had few other problems with them as well, but cannot exactly remember context.
However I am sure there are more. Perhaps our more experienced/knowledgeable VFP community members
can list out few more commands/contexts where you will run into problems with long field names.

Do you think that using field names longer then 10 chars is wise thing to do ?
If so, please elaborate why.
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform