Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating in a scan...endscan
Message
De
02/10/2006 14:12:27
 
 
À
02/10/2006 14:07:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01158457
Message ID:
01158639
Vues:
33
That's why scan..endscan is so much simpler. Two word/two lines of code
Scan
  ..
Endscan
replaces seven words/four lines of code
go top
do while !eof()
   ....
   skip
enddo
>It's a contamination from
>
>go top
>do while !eof()
>   ....
>   skip
>enddo
>
>
>>Why in this thread is everyone putting GO TOP before SCAN?
>>
>>>hi
>>>friend
>>>if u want scan..endscan
>>>i suggest follwoing funcs
>>>cursor must be readwrite
>>>
>>>
>>>local wbal
>>>wbal=0
>>>sele (yourcursorfile)
>>>
>>>go top
>>>scan while !eof()
>>>wbal=wbal+credit-debit
>>>repl reminder with wbal
>>>ends
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform