Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for records not found
Message
De
09/07/1998 16:31:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/07/1998 00:00:28
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00115142
Message ID:
00115915
Vues:
13
> SELECT newinit
> LOCATE FOR alltrim(acode) = myscanvalue
> DO WHILE !FOUND( )

You've already got the solution for this, but a general remar would be that Found() is not reset until the next Locate, Continue or Seek.

> x='00'+alltrim(str(val(x)+1))

Another one here: you're adding numbers that look like 001, 002, 003, ... 008, 009, 0010 - but then when you Go Bott it will find 009 as the last one (because they will align as 001, 0010, 002, 003, 004, ... 008, 009), and you'll get 0010 for all after 009. You'd better set

x=tran(val(x)+1, "@L 999999") - i.e. fixed number of digits with leading zeros. They'll line up fine then.

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