Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to write code to a method ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00483709
Message ID:
00484051
Vues:
11
Thanks for your answer Scott,
I use it, but nothing happens!
I had try it in two differents ways, let'say I am creating a builder for a text box.

1.- I have in my textbox a property named "Builder" which value is
"MyTextBoxBuilder".
When I right click and select builder a program MyTextBuilder.prg is called
with two parameters, a refererece to 'myTextBox' and the last action perfomed, in this case "RightClick", this programs instatiate the 'TextBuilder Class'
where the WriteMethod is executed.
All I do is a THIS.MyObjectReference.WriteMethod("RightClick","Test")
and nothing happens.

2.- I have the same text box, but now in my "Builder" property I have
"MyBuilderClassLibraryName","TxtBoxBuilderClassName".
When I right click and select builder the class is instatiated, but when
hit my button to apply the changes I got an error "Method contains syntax errors. Method is not saved"

What am I missing ?



>Luis,
>
>In my builders, I always use the WriteMethod to do it. While it is hidden in the PEM sheet, your builder should be able to access it at design time.
>
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform