Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data-type prefixes
Message
From
08/07/2003 08:12:39
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Data-type prefixes
Miscellaneous
Thread ID:
00807902
Message ID:
00807902
Views:
50
For years now we have had the integer data type in VFP, and if we are to follow the common notation of preceding with the first letter of the data type we should get field names like iStockQty or iBatchNumber, and local variables like liLoopCount and liNewRec. The thing is, I haven't seen adoption of this standard anywhere! In all the books and magazines I have read over the past few years, it appears that most developers are still using the 'n' prefix for integer values (maybe I'm reading the wrong books!).

Is this a case of old habits dying hard, or is the trend to keep the 'n' prefix for all numeric values, whether integer or not? (Or are we just lazy ;-))

I have been trying to adopt this new standard in my code, but can't help thinking that it still looks 'odd' and I can't get used to it.

What are other developers doing regarding the 'i' integer prefix? Any comments would be appreciated.

Alan
Next
Reply
Map
View

Click here to load this message in the networking platform