Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define class programmatically
Message
 
À
12/11/2003 14:58:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00848966
Message ID:
00849274
Vues:
33
In a PRG somewhere ...
Define class subclsComboBox as ComboBox
visible=.t.
top=n
width=n
...;etc
enddefine
In your forms init event:
thisform.addobject('cboMyCombo','subclsComboBox')

Now your form should display a combobox named 'cboMyCombo'

Download #16575 demonstrates how to add PRG classes to a Visual Form.
HTH


>Thanks for your reply - what I am not sure about is how you get the combo box to actually appear. What part of your program does this? Do you have to have it as a form? I have a define class program, and when I run it nothing happens. When I run yours, the combo box and form appear. I have received some great responses to this question, but am a little embarrassed to indicate that I cannot follow the others suggestions since it is not "step-by-step" and I am not knowledgeable about what they are suggesting. Every suggestion leads me to a Foxpro book where I look up what they are suggesting but I am unable to get to "the next level" and solve my problem. Since
>I am not a great programmer, I usually need more help than the next guy. Any layman's help you can give would be greatly appreciated.
>
>Thank you
>
>Paul
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform