Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with reading a record?
Message
From
12/03/1998 14:06:12
 
 
To
12/03/1998 14:03:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00084227
Message ID:
00084228
Views:
16
>In vfp50, I have a five record table with a fld called NUM.
>The values in this field are 1,2,3,4,5...
>The index is set to this field (NUM).
>When I change the NUM value in record five from 5 to 1.1,
>the records are in the index order: example
>1,1.1,2,3,4 ---
>Now I run this code:
> -- code-
>i=1
>do while !eof()
>replace num with i
>ship 1
>i=i+1
>endo
>-- end of code --
>Now, my NUM fileds should read 1,2,3,4,5.
>For some reason the second record is skipped by vfp.
>My NUM fields read 1,2,2,3,4
>Does anybody know why?

You got into trap. If you move along index sequence, you shouldn't change value of the field which is part of index expression, because doing this you make a jump (generally).
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform