Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ciprian Zaharia
  Where is Ciprian Zaharia?
 Brossard
 Canada
 Ciprian Zaharia
 To: Scott Johnstone
  Where is Scott Johnstone?
 Moose Jaw
 Canada
 Scott Johnstone
 Tags
Subject: RE: 2 grid quesitons
Thread ID: 154945 Message ID: 154971 # Views: 3 # Ratings: 1
Version: Visual FoxPro 9 Category: Grids
Date: Thursday, December 20, 2007 9:41:52 PM         
   


> ?EOF([TheCursorIUseAsMyRecordSource])
>
> When I try this it always returns .F., it should only be true if record pointer is past the last record, right?
> What I'm really trying to do is detect if I'm on the last record so that a new record can be added (I'm using insert rather than the 'allowaddnew'). I have a programatic keyboard-downarrow when the current record is saved, but I don't want more than one record added before the first one is saved with tableupdate.
>
> I'm not sure I'm too clear, but maybe you can see what I mean,
> Thanks again
> Scott Johnstone
> Moose Jaw SK Canada

WITH downarrow you will never reach EOF()
you can instead of downarrow use skip


If Not Eof()
          Skip
          If Eof() && reached eof() after jump
                    Skip-1  && go back to the last record
          Endif
Endif

&& rest of the code here

Ciprian Zaharia
Fox4Ever

ENTIRE THREAD

2 grid quesitons Posted by Scott Johnstone @ 12/20/2007 6:46:44 PM
RE: 2 grid quesitons Posted by Don Higgins @ 12/20/2007 7:02:14 PM
RE: 2 grid quesitons Posted by Ken Murphy @ 12/20/2007 7:05:57 PM
RE: 2 grid quesitons Posted by Ciprian Zaharia @ 12/20/2007 8:59:45 PM
RE: 2 grid quesitons Posted by Scott Johnstone @ 12/20/2007 9:18:28 PM
RE: 2 grid quesitons Posted by Ciprian Zaharia @ 12/20/2007 9:41:52 PM