Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box Question
Message
De
03/12/2008 17:57:05
 
 
À
03/12/2008 16:45:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01365396
Message ID:
01365421
Vues:
15
>>>>
>>>>What is the RowSource for the combo? If this is a cursor, you get the info from the cursor directly, since it should be sitting on the right record.
>>>
>>>The Browse table and the Combobox table are not related. The Browse table is gotten to via a button.
>>
>>I mean here the cursor that is used for combobox's RowSource.
>
>Again, unless I want to take what I'm getting from the Patient Browse form, reformat it and then seek it in the cursor - there is absolutely NO relationship between the two.
>
>All I want is to be able to take the value I'm getting to the combobox and have the combobox tell me whether that item exists with it's List or not, and if so - go to that item in the list

Is this what you're looking for???
FUNCTION searchcombo
LPARAMETERS tcValue

WITH myCombo
     FOR I = 1 TO .listcount
	IF .List[i] = tcValue
	    RETURN I
	ENDIF
    ENDFOR
ENDWITH
RETURN 0  && Not Found
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform