Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25545

Foxpro goto command and deleted records

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '(at': 0.03; 'exception': 0.03; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; 'subject:command': 0.09; '~ethan~': 0.09; 'anyway': 0.11; 'deleted,': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'pointer': 0.17; 'raise': 0.24; 'least': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.28; 'record': 0.28; '(possibly': 0.29; 'that.': 0.30; 'to:addr:python- list': 0.33; 'version': 0.34; 'options:': 0.35; 'next': 0.35; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'received:69.56': 0.65; 'seventh': 0.84; 'to:name:python': 0.84; 'subject:records': 0.91
Date Tue, 17 Jul 2012 15:57:04 -0700
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version 1.0
To Python <python-list@python.org>
Subject Foxpro goto command and deleted records
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - gator410.hostgator.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - stoneleaf.us
X-BWhitelist no
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender ([192.168.10.136]) [72.11.125.166]:4027
X-Source-Auth ethan+stoneleaf.us
X-Email-Count 3
X-Source-Cap dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ==
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2254.1342568073.4697.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1342568073 news.xs4all.nl 6960 [2001:888:2000:d::a6]:45355
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:25545

Show key headers only | View raw


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?

~Ethan~

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Foxpro goto command and deleted records Ethan Furman <ethan@stoneleaf.us> - 2012-07-17 15:57 -0700
  Re: Foxpro goto command and deleted records Grant Edwards <invalid@invalid.invalid> - 2012-07-18 14:40 +0000
    Re: Foxpro goto command and deleted records Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-07-18 12:26 -0400
    Re: Foxpro goto command and deleted records Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-18 10:26 -0600

csiph-web