Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
counting lines of code/low level file functions
Message
De
22/05/1998 08:53:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/05/1998 10:52:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00100503
Message ID:
00101126
Vues:
50
>* otherwise
>* if right(cString,1) # ";"
>* codelines = codelines + 1
>* endif
> * Check inline comment
> do while occurs("&",cString)>0
> cString = substr(cString,at("&",cString)+1)
> if cString = "&"
> astlines = astlines + 1
> exit
> endif
> enddo
>* endcaseOr collect them to a inlinecomm var to differentiate from astlines.
>Cetin

A bit shorter: somewhere in the beginning

dbl_amp="&"+"&"


Then we can do like this:

* Check inline comment
if dbl_amp$ cString
astlines = astlines + 1
endif

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform