Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform.mylistbox1.refresh
Message
De
24/02/1998 08:55:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00079959
Message ID:
00080755
Vues:
80
>>>>>>>>Timothy, may i guess what you can do?
>>>>>>>>Throw away all Listbox.Refresh() and Listbox.Requery() and issue:
>>>>>>>>Thisform.List1.Value=Table1.Field1
>>>>>>>>assuming that Table1.Field1 is list.rowsource
>>>>>>>
>>>>>>>Ed, what exactly does this do? Can you seek a certain record with this method and have the listbox's record pointer go there?
>>>>>>
>>>>>>Any time you work with List or combo, you should go to Rowsource first, i.e. if you moved pointer there (e.g. as result of SEEK) then the only thing you need to show this record value is to say 'Listbox.Value=Table.Field'
>>>>>
>>>>>What I was hoping to do was seek the record of choice, then skip 5 records and display it from there. Does this seem viable with the above described method?
>>>>
>>>>Do you mean that you want to show current listbox item as 5 records from the SEEK point? It's not a problem, but why do you want this?
>>>
>>>Yes, it's what I want so that the seek'ed' record is about in the middle of the listbox rather than at the bottom.
>>
>>That's pretty normal to allow the list to show active item at the bottom. You can make a trick to bring active item to the middle by MOUSE CLICK at scroll button, but it's really artificial.
>
>So to seek the record of choice, then skip 5 records and display it from there is not really possible by saying 'Skip 5' ?

No, it's possible but you will really select (highlight) the fifth record from the SEEK point. If it's the purpose, that's OK.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform