Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access the Name property of a combobox.
Message
 
À
26/11/2003 15:16:24
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00853637
Message ID:
00854577
Vues:
27
>>I have five comboboxes based on my class "cbocombopopup". I want to use the Right-Click method of this class to popup another form that has a grid with my "metadata" table as the record source. I want to filter the table according to which subclassed combobox the user right clicks on. Why does this work in the Right-Click method of my Class, the name of the subclassed combobox is "cboRef":
>>
>>
>>   IF This.Parent.Name = "frmQuoteNum"
>>     SELECT metadata
>>     SET FILTER TO ALLTRIM(datafield) = "cboRef"
>>   ENDIF
>>
>>
>>...but this doesn't work:
>>
>>
>>  IF This.Parent.Name = "frmQuoteNum"
>>     SELECT metadata
>>     SET FILTER TO ALLTRIM(datafield) = ALLTRIM(This.Name)
>>  ENDIF
>>
>
>Are you sure there's no digit attached to this.name? I would expect that this.name="cboref1".

No, it's not the numbering/naming issue. I distinctly named these. But I think I will go with Stephan's suggestions. Thank you for your input.
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform