Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox & pointer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Listbox & pointer
Divers
Thread ID:
00061687
Message ID:
00061687
Vues:
65
I have created two list boxes.

Code for a button.click() that populates listbox (1)

SELECT User.fuse_refe, User.fuse_name from user where empty(user.fuse_divi) order by User.fuse_refe into cursor arRefeName

this.parent.ltRefeName.columncount = 2
this.parent.ltRefeName.columnwidths = "32,280,"
this.parent.ltRefeName.width = 320
this.parent.ltRefeName.RowSourceType = 6
this.parent.ltRefeName.RowSource = 'arRefeName'
this.parent.ltRefeName.controlSource = "arRefeName.fuse_refe"
this.parent.ltRefeName.BoundColumn = 1



listbox(1).click which then populates listbox (2)

SELECT DISTINCT User.fuse_divi, User.fuse_name from user where user.fuse_refe = arRefeName.fuse_refe and !empty(user.fuse_divi) order by User.fuse_divi into cursor arDiviName

this.parent.ltDiviName.columncount = 2
this.parent.ltDiviName.columnwidths = "32,280,"
this.parent.ltDiviName.width = 320
this.parent.ltDiviName.RowSourceType = 6
this.parent.ltDiviName.RowSource = 'arDiviName'
this.parent.ltDiviName.controlSource = "arDiviName.fuse_divi"
this.parent.ltDiviName.BoundColumn = 1
this.parent.ltDiviName.refresh()


The problem is I click on listbox (1) and select the seventh item in it. This populates listbox(2). I then click on listbox (2) which then reset the pointer in listbox (1) to line/item one. Any idea's?

TIA

James
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform