Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Enter in memory vars in a FORM - ADDITEM
Message
De
01/04/1997 09:55:46
 
 
À
27/03/1997 13:17:02
Bill Gravell
Indoor Purification System
Menifee, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00025708
Message ID:
00026411
Vues:
34
>>>>I want to let the users ADDITEM to a combox?
>>>>Not sure how to go about it? Do I open
>>>>a entry place and if so how?
>>>
>>>To save myself from troubles, I usually add an 'Add' button near de Combo wich opens a form that automatically does an Append Blank with a Confirm button (that does a =TableUpdate) and a Cancel button (that does a =TableRevert).
>>>Don't forget to return a value from the form (.T./.F.) to check if you have to do a requery or a RowSource=RowSource in the Combo.
>>>
>>>HTH.
>>
>>I am using an array and not a table.. how would that work?
>
>I just went through all this a couple of hours ago. Not sure if I understand all I know about what I did, but I got it to work.
>
>In the combobox (not a drop-down list), when you enter something that is not contained in the list, the value is empty. I did something like this:
>
>if empty(this.value)
>
> this.additem(this.displayvalue)
> this.value=this.displayvalue
> ...update the array...
>
>endif
>
>I set the SORTED property to .T. and the new item showed up in the proper place.
>
>HTH
>
>Bill

thanks Bill.. I will try that..rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform