Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dumb array and combobox question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00449531
Message ID:
00449609
Vues:
8
Thanks
This is very close to what I need, I must do some breakdown and rebuilding

once again, Thanks

>Hello all
>I have 3 objects a multi-dimension array, a combo box and a text box
>
>I have a multi-dimension array ( pa_dept[2,2] ) actually like 5,400
>pa_dept[1,1] = 'A' == pa_dept[*,*] '*' field is not unique
>pa_dept[2,1] = 'B' == pa_dept[*,*] '*' field is not unique
>pa_dept[1,2] = 4600 == pa_dept[*,*] '*' field is not unique
>pa_dept[2,2] = 4700 == pa_dept[*,*] '*' field is not unique
>My combo box displays pa_dept[*,1] 'A', 'B'
>I want my text box to display pa_dept[*,2] 4600, 47000
>in the interactive change event of the combo box how do I say the textbox.value = the number relating to the combo box value
>can I pull the array value from the combo box, I don't want to do a ascan() because nothing is unique
>If I am unclear, just let me know I will try to explain in different words
>
>
>Hello Stephen
>try this:
>Set your BoundTo Property to True
>Set your BoundColumn to 2
>Set your DisplayValue to =YourArrayName[1,1]
>and in the combo box's interactive change event try this:
>THISFORM.TEXTBOXNAME.VALUE = THIS.VALUE
>
>From what I understand, I believe this is what you are trying to do.
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform