Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Tore Bleken
  Where is Tore Bleken?
 Stokke
 Norway
 Tore Bleken
 To: Ahsan Rana
  Where is Ahsan Rana?
 Lahore
 Pakistan
 Ahsan Rana
 Tags
Subject: RE: Form Running Error
Thread ID: 396180 Message ID: 396206 # Views: 33 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Thursday, January 23, 2014 2:55:38 PM         
   


> >
> >
> > Hi,
> >
> > Are you somewhere in your form performing a SEEK against an index?
> >
> > Just wondering as I have seen this error with a SEEK and the index order
> > has not been set to the correct one.
> >
> > Pete "the IceMan", from the Great White North of Canada.
> > www.marathongriffincomputers.com
>
> No Sir, there is no seek command used there. only the command line is
> Thisform.txtCode.Value = This.List(This.ListIndex,2)
>
> Rgds:
> Ahsan Rana

Update! If I am not wrong, your code will give this error on startup, when ListIndex = 0!

If This.ListIndex>0
   Thisform.txtCode.Value = This.List(This.ListIndex,2)
Else
   Thisform.txtCode.Value = ''
Endif


There's a fine line between helping and adding to the confusion.

How to create sample data

ENTIRE THREAD

Form Running Error Posted by Ahsan Rana @ 1/23/2014 9:40:01 AM
RE: Form Running Error Posted by Tore Bleken @ 1/23/2014 9:47:14 AM
RE: Form Running Error Posted by Pete Sass @ 1/23/2014 10:50:00 AM
RE: Form Running Error Posted by Ahsan Rana @ 1/23/2014 2:47:52 PM
RE: Form Running Error Posted by Tore Bleken @ 1/23/2014 2:55:38 PM