Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I drop it?
Message
From
03/12/2013 02:52:30
 
 
To
02/12/2013 14:14:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01588891
Message ID:
01589121
Views:
81
>>
>>Do you think that using field names longer then 10 chars is wise thing to do ?
>>If so, please elaborate why.
>
>Trying to squeeze a name in 10 chars may give cryptic results/names - more difficult to remember what the field contains - more difficult to read/understand sql statements

Of course it will produce some funny field names. But we lived with it in the past already (with naming conventions/patterns etc).
Also there are field comments, captions etc for showing to user, so it is not all that bad.
(You can have lot more if you implemented some extended dictionary aside)

But those sometime cryptic sometime funny field names are IMO good trade-off versus having all other problems down the line.
Any time you pool sql query into a cursor you will get truncated field names. So any further processing by code that assumes
original field name is potential source of practical problems and/or bugs.

Sometime I wander why M$ never properly expanded DBC container into a proper table dictionary.
Instead it was left to community to make extended dictionary standards tools etc. Where all needed was few extra fields (inside DBC table)
to keep user defined properties and possibility to set/retrieve those via DBSETPROP() / DBGETPROP() . It would have been peace of cake for them to add.
Would have save people whole lot of hurdles.
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform