NEW QUIZ #2

Richard Kreiss rkreiss at verizon.net
Sat Aug 20 06:43:26 PDT 2011



On Aug 19, 2011, at 10:45 AM, Nancy Palmquist <nlp at vss3.com> wrote:

> I always try to avoid labels and long variables that overlap with 
> filepro Commands.  This is just considered bad programming because it is 
> confusing.
> 
> I also try to remember to avoid making long variables that are the same 
> as "field Headings".  I find some very confusing issues when doing this.
> 
> Field Headings to the first space are also treated as field 
> representations so I can use them exactly as I do field numbers.  So I 
> try to make all the headings unique and avoid using the same characters 
> for long variables
> 
> It would be nice if all these relationships or conflicts could be listed 
> in the cross reference or a screen in the debugger.
> 
> The field heading thing can make program routines portable. If you call 
> the fields the same thing in different files, you can write routines 
> using the headings and move them from file to file without rewrites even 
> if the field numbers are different.
> 
> Nancy

The other advantage is clarity when one looks back at a program. 

9=5*6

Or

Amount=cost*quantity

Now which is clearer?

I started using the field names a long time ago. However one can not so this if the field(s) are associated. 

As for long variables, I use the format of capitalizing the first letter and the first letter of the second syllable 
QuantityShipped

Many My field names have an underscore joining it's parts
Qty_ord.  qty_shipped 


Richard
From phone
> 
> On 8/18/2011 4:53 PM, George Simon wrote:
>> What is the only 3-letter long variable that cannot be used effectively in
>> filePro?
>> 
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> Subscribe/Unsubscribe/Subscription Changes
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>> 
> 
> -- 
> Nancy Palmquist         MOS&  filePro Training Available
> Virtual Software Systems    Web Based Training and Consulting
> PHONE: (412) 835-9417           Web site:  http://www.vss3.com
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list


More information about the Filepro-list mailing list