Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Is More Readable To You?
Message
From
04/03/2008 18:08:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01298471
Message ID:
01298715
Views:
21
>Which do you find more readable and why?

I prefer some use of tabs, but trying to get everything line up neatly is futile. Your example works only if tab width is set to 8 and font is set to monospaced. It actually looked quite jagged in most of my setups (usually Tahoma, Verdana or Trebuchet, 10, sometimes 9, sometimes bold). And my tabs are usually set to 3 spaces, unless I forget and leave them at 4.

Here's how your sample looks in monospace font for various tab widths:
* tab width 2
REPLACE IN crsrAutoRateBillItems;
  arbi_bcm_fk       WITH crsrResult.pdb_bcm_fk, ;
  arbi_bcm_code       WITH crsrResult.bcm_code, ;
  arbi_bfn_fk       WITH crsrResult.bcm_bfn_fk, ;
  arbi_bcm_rate       WITH crsrResult.pdb_rate, ;
  arbi_bcm_notbillable      WITH crsrResult.pdb_notbillable, ;
  arbi_bcm_use_billcode     WITH crsrResult.pdb_use_commcode, ;
  arbi_bcm_min      WITH crsrResult.pdb_min, ;
  arbi_bcm_allowed    WITH crsrResult.pdb_allowed, ;
  arbi_bcm_order      WITH ((crsrResult.pdb_order*10)+1), ;
  arbi_desc       WITH ALLTRIM(crsrResult.pdb_desc), ;
  arbi_pieces       WITH 0, ;
  arbi_weight       WITH 0, ;
  arbi_qty      WITH crsrResult.bcm_qty, ;
  arbi_rate       WITH 0, ;
  arbi_ratetype       WITH crsrResult.bcm_billtype, ;
  arbi_amount       WITH 0, ;
  arbi_revcode      WITH crsrResult.bcm_revcode, ;
  arbi_dept       WITH crsrResult.bcm_dept, ;
  arbi_prompt       WITH !crsrProdBillNoCNS.pdb_notbillable, ;
  arbi_exception      WITH .F., ;
  arbi_source       WITH 3


* tab width 3
REPLACE IN crsrAutoRateBillItems;
   arbi_bcm_fk         WITH crsrResult.pdb_bcm_fk, ;
   arbi_bcm_code       WITH crsrResult.bcm_code, ;
   arbi_bfn_fk         WITH crsrResult.bcm_bfn_fk, ;
   arbi_bcm_rate       WITH crsrResult.pdb_rate, ;
   arbi_bcm_notbillable      WITH crsrResult.pdb_notbillable, ;
   arbi_bcm_use_billcode     WITH crsrResult.pdb_use_commcode, ;
   arbi_bcm_min        WITH crsrResult.pdb_min, ;
   arbi_bcm_allowed    WITH crsrResult.pdb_allowed, ;
   arbi_bcm_order         WITH ((crsrResult.pdb_order*10)+1), ;
   arbi_desc        WITH ALLTRIM(crsrResult.pdb_desc), ;
   arbi_pieces         WITH 0, ;
   arbi_weight         WITH 0, ;
   arbi_qty         WITH crsrResult.bcm_qty, ;
   arbi_rate        WITH 0, ;
   arbi_ratetype       WITH crsrResult.bcm_billtype, ;
   arbi_amount         WITH 0, ;
   arbi_revcode        WITH crsrResult.bcm_revcode, ;
   arbi_dept        WITH crsrResult.bcm_dept, ;
   arbi_prompt         WITH !crsrProdBillNoCNS.pdb_notbillable, ;
   arbi_exception         WITH .F., ;
   arbi_source         WITH 3


* tab width 4
REPLACE IN crsrAutoRateBillItems;
    arbi_bcm_fk           WITH crsrResult.pdb_bcm_fk, ;
    arbi_bcm_code         WITH crsrResult.bcm_code, ;
    arbi_bfn_fk           WITH crsrResult.bcm_bfn_fk, ;
    arbi_bcm_rate         WITH crsrResult.pdb_rate, ;
    arbi_bcm_notbillable      WITH crsrResult.pdb_notbillable, ;
    arbi_bcm_use_billcode     WITH crsrResult.pdb_use_commcode, ;
    arbi_bcm_min          WITH crsrResult.pdb_min, ;
    arbi_bcm_allowed      WITH crsrResult.pdb_allowed, ;
    arbi_bcm_order        WITH ((crsrResult.pdb_order*10)+1), ;
    arbi_desc         WITH ALLTRIM(crsrResult.pdb_desc), ;
    arbi_pieces           WITH 0, ;
    arbi_weight           WITH 0, ;
    arbi_qty          WITH crsrResult.bcm_qty, ;
    arbi_rate         WITH 0, ;
    arbi_ratetype         WITH crsrResult.bcm_billtype, ;
    arbi_amount           WITH 0, ;
    arbi_revcode          WITH crsrResult.bcm_revcode, ;
    arbi_dept         WITH crsrResult.bcm_dept, ;
    arbi_prompt           WITH !crsrProdBillNoCNS.pdb_notbillable, ;
    arbi_exception        WITH .F., ;
    arbi_source           WITH 3


* tab width 5
REPLACE IN crsrAutoRateBillItems;
     arbi_bcm_fk           WITH crsrResult.pdb_bcm_fk, ;
     arbi_bcm_code         WITH crsrResult.bcm_code, ;
     arbi_bfn_fk           WITH crsrResult.bcm_bfn_fk, ;
     arbi_bcm_rate         WITH crsrResult.pdb_rate, ;
     arbi_bcm_notbillable      WITH crsrResult.pdb_notbillable, ;
     arbi_bcm_use_billcode     WITH crsrResult.pdb_use_commcode, ;
     arbi_bcm_min          WITH crsrResult.pdb_min, ;
     arbi_bcm_allowed      WITH crsrResult.pdb_allowed, ;
     arbi_bcm_order             WITH ((crsrResult.pdb_order*10)+1), ;
     arbi_desc             WITH ALLTRIM(crsrResult.pdb_desc), ;
     arbi_pieces           WITH 0, ;
     arbi_weight           WITH 0, ;
     arbi_qty         WITH crsrResult.bcm_qty, ;
     arbi_rate             WITH 0, ;
     arbi_ratetype         WITH crsrResult.bcm_billtype, ;
     arbi_amount           WITH 0, ;
     arbi_revcode          WITH crsrResult.bcm_revcode, ;
     arbi_dept             WITH crsrResult.bcm_dept, ;
     arbi_prompt           WITH !crsrProdBillNoCNS.pdb_notbillable, ;
     arbi_exception             WITH .F., ;
     arbi_source           WITH 3


* tab width 6
REPLACE IN crsrAutoRateBillItems;
      arbi_bcm_fk               WITH crsrResult.pdb_bcm_fk, ;
      arbi_bcm_code             WITH crsrResult.bcm_code, ;
      arbi_bfn_fk               WITH crsrResult.bcm_bfn_fk, ;
      arbi_bcm_rate             WITH crsrResult.pdb_rate, ;
      arbi_bcm_notbillable      WITH crsrResult.pdb_notbillable, ;
      arbi_bcm_use_billcode     WITH crsrResult.pdb_use_commcode, ;
      arbi_bcm_min              WITH crsrResult.pdb_min, ;
      arbi_bcm_allowed    WITH crsrResult.pdb_allowed, ;
      arbi_bcm_order            WITH ((crsrResult.pdb_order*10)+1), ;
      arbi_desc           WITH ALLTRIM(crsrResult.pdb_desc), ;
      arbi_pieces               WITH 0, ;
      arbi_weight               WITH 0, ;
      arbi_qty            WITH crsrResult.bcm_qty, ;
      arbi_rate           WITH 0, ;
      arbi_ratetype             WITH crsrResult.bcm_billtype, ;
      arbi_amount               WITH 0, ;
      arbi_revcode              WITH crsrResult.bcm_revcode, ;
      arbi_dept           WITH crsrResult.bcm_dept, ;
      arbi_prompt               WITH !crsrProdBillNoCNS.pdb_notbillable, ;
      arbi_exception            WITH .F., ;
      arbi_source               WITH 3


* tab width 7
REPLACE IN crsrAutoRateBillItems;
       arbi_bcm_fk            WITH crsrResult.pdb_bcm_fk, ;
       arbi_bcm_code                 WITH crsrResult.bcm_code, ;
       arbi_bfn_fk            WITH crsrResult.bcm_bfn_fk, ;
       arbi_bcm_rate                 WITH crsrResult.pdb_rate, ;
       arbi_bcm_notbillable      WITH crsrResult.pdb_notbillable, ;
       arbi_bcm_use_billcode     WITH crsrResult.pdb_use_commcode, ;
       arbi_bcm_min           WITH crsrResult.pdb_min, ;
       arbi_bcm_allowed       WITH crsrResult.pdb_allowed, ;
       arbi_bcm_order                WITH ((crsrResult.pdb_order*10)+1), ;
       arbi_desc              WITH ALLTRIM(crsrResult.pdb_desc), ;
       arbi_pieces            WITH 0, ;
       arbi_weight            WITH 0, ;
       arbi_qty               WITH crsrResult.bcm_qty, ;
       arbi_rate              WITH 0, ;
       arbi_ratetype                 WITH crsrResult.bcm_billtype, ;
       arbi_amount            WITH 0, ;
       arbi_revcode           WITH crsrResult.bcm_revcode, ;
       arbi_dept              WITH crsrResult.bcm_dept, ;
       arbi_prompt            WITH !crsrProdBillNoCNS.pdb_notbillable, ;
       arbi_exception                WITH .F., ;
       arbi_source            WITH 3


* tab width 8
REPLACE IN crsrAutoRateBillItems;
        arbi_bcm_fk               WITH crsrResult.pdb_bcm_fk, ;
        arbi_bcm_code             WITH crsrResult.bcm_code, ;
        arbi_bfn_fk               WITH crsrResult.bcm_bfn_fk, ;
        arbi_bcm_rate             WITH crsrResult.pdb_rate, ;
        arbi_bcm_notbillable      WITH crsrResult.pdb_notbillable, ;
        arbi_bcm_use_billcode     WITH crsrResult.pdb_use_commcode, ;
        arbi_bcm_min              WITH crsrResult.pdb_min, ;
        arbi_bcm_allowed          WITH crsrResult.pdb_allowed, ;
        arbi_bcm_order            WITH ((crsrResult.pdb_order*10)+1), ;
        arbi_desc                 WITH ALLTRIM(crsrResult.pdb_desc), ;
        arbi_pieces               WITH 0, ;
        arbi_weight               WITH 0, ;
        arbi_qty                  WITH crsrResult.bcm_qty, ;
        arbi_rate                 WITH 0, ;
        arbi_ratetype             WITH crsrResult.bcm_billtype, ;
        arbi_amount               WITH 0, ;
        arbi_revcode              WITH crsrResult.bcm_revcode, ;
        arbi_dept                 WITH crsrResult.bcm_dept, ;
        arbi_prompt               WITH !crsrProdBillNoCNS.pdb_notbillable, ;
        arbi_exception            WITH .F., ;
        arbi_source               WITH 3

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform