Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for records not found
Message
From
09/07/1998 16:31:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/07/1998 00:00:28
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00115142
Message ID:
00115915
Views:
12
> 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.
Previous
Reply
Map
View

Click here to load this message in the networking platform