Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.Selected() Method
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
.Selected() Method
Divers
Thread ID:
00035044
Message ID:
00035044
Vues:
77
I have a 2 page pageframe on my form. Page 1 is for data entry with index tag set to "Projects". Page 2 has a listbox based on fields for navigation purposes with index tag set to name. When the user moves from page1 to page2 I ensure that the correct item in the listbox is highlighted with the following code in the Page2.Activate() event:

THISFORM.LockScreen=.T.
SET ORDER TO Name
mnrecno=RECNO()
COUNT ALL WHILE RECNO() # mnrecno TO mnoffset
THIS.lstPerson.Selected(mnoffset+1)=.T.
THISFORM.LockScreen=.F.

(thanks to Matt Mcdonnell for the basis of this code)

My problem is this. This works perfectly all the time EXCEPT for the first time. HELP!! Any ideas as to why?

Thanks in advance --
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform