Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Submenus for a combobox?
Message
De
14/10/1999 13:26:21
Greg Mccammon
Raytheon Systems Company
Lexington, Kentucky, États-Unis
 
 
À
13/10/1999 14:14:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00275948
Message ID:
00276462
Vues:
28
I tried using the code as you described (I think).

The following code is in the init event of my second combo box 'combo6':
*** Set up the SQL statement to use as the RowSource
*** for the dependent list box (Combo6)

*** Select only the items that have a main_no equal
*** to the item selected in the CmbProcess_no combo box.

lcRowsource = 'Select sub_no, sub_desc from proc_no'
lcRowsource = lcRowsource + 'where proc_no.main_no = (ThisForm.CmbProcess_no.Value ) into ;
cursor c_proc_no'
lcRowsource = lcRowsource + 'order by sub_no'


*** Now set up the properties of Combo6
WITH THIS
	.ROWSOURCETYPE = 3
	.ROWSOURCE = lcRowsource
*** Don't forget to repopulate the control's internal list
	.REQUERY()
*** Initialize it to display the first item
	.LISTINDEX = 1
ENDWITH

When I attempt to run this form I get an error 'Unrecognized Command Verb' and it stops on the .ROWSOURCETYPE = 3 line. Any ideas why? Did I miscopy the syntax?

Also, if I set the properties programatically in the init event do I leave them blank in the properties box, or should I set them equal to the same thing?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform