Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlight Listbox row - is it possible?
Message
De
06/12/2004 09:06:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/12/2004 08:59:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00967126
Message ID:
00967153
Vues:
10
>Hello Cetin,
>
>Yes it is the default behaviour, you are correct. However, when I do things like ... add a new record in the table, whilst the row changes in the table, the highlight in the list box stays on the previous record? Any ideas why?
>
>Also, if I call the list's requery method after adding the new record, I am moved of the new record to what appears to be the last record the list was actually highlighting?
>
>Boy am I confused! :)
>
>Regards,
>
>Angie.

Angie,
When rowsource is sonething that's based on a cursor (alias,fields,query,sql) then you've a listindex=recno("underlyingsource") relationship.

Added a new record or requeried and set pointer in source to desired record:

thisform.myList.ListIndex = recno("underlyingsource")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform