Thanks much Scott, That was it, it requires a valid line of code.
>Luis,
>
>For #1, in your builder program you say you have two parameters, but I don't quite understand why you are referencing "THIS.MyObjectReference.WriteMethod..." If your textbox reference parameter is oTxt, then it seems like you should be referencing oTxt.WriteMethod(). FWIW, in my builders, I don't pass a reference to the selected object. Instead, I use something like this:
>
>
>=ASELOBJ(aControls)
>oSelField=aControls(1)
>oSelField.WriteMethod("RightClick","Wait Window 'TEST'")
>
>
>As for #2, you may be close there. Apparently, WriteMethod() only lets you create valid code in the method, so "Test" probably won't work. Try it with a valid line of code like "Wait Window 'TEST'".
>
>Additionally, I have never used the Builder property technique for calling a builder. I have always used the technique outlined under "Using BUILDER.DBF" in the help files.
>
>Scott
>
>
>>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