Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Foxpro goto command and deleted records

Reply
Thread Tools

Re: Foxpro goto command and deleted records

 
 
Ed Leafe
Guest
Posts: n/a
 
      07-18-2012
On Jul 17, 2012, at 5:57 PM, Ethan Furman wrote:

> In Foxpro if you do a
>
> GOTO 7
>
> with deleted off and record 7 is deleted, the record pointer doesn't
> move (at least in version 6).
>
> I don't like that.
>
> I see four other options:
>
> 0) don't move the pointer (listed for completeness)
> 1) go to that record anyway
> 2) go to the next undeleted record
> 3) go to the seventh undeleted record (possibly the least practical)
> 4) raise an exception
>
> Any opinions?


It's been many years since I fired up VFP, but the above doesn't sound correct. If you have SET DELETED OFF and the GOTO 7, the pointer should move to the 7th record, whether it is marked deleted or not. With SET DELETED ON, the pointer should not move, since 7 is not a valid record.


-- Ed Leafe



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foxpro goto command and deleted records Ethan Furman Python 3 07-18-2012 04:26 PM
Re: Foxpro goto command and deleted records Ethan Furman Python 0 07-18-2012 02:19 AM
Re: Foxpro goto command and deleted records Ethan Furman Python 0 07-18-2012 02:16 AM
Re: Foxpro goto command and deleted records MRAB Python 0 07-18-2012 12:01 AM
Re: Foxpro goto command and deleted records Ian Kelly Python 0 07-17-2012 11:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57