Thank you.
>You have to remove old container first.
>
>>
>>I am adding a property FIELD_CONTAINER to a form, which works initially. But when I want to set a different class to the same property, I get error.
>>
>>Here is the snipet of the code:
>>
>>
>>IF !TYPE( "thisform.field_container") = "O"
>> *-- Add this container to the form
>> thisform.newobject( "field_container", "myclass1", "myclasslib.vcx" )
>> *-- Works!
>>ELSE
>> *-- I want to use the same property (FIELD_CONTAINER but use a different class
>> thisform.field_container = NEWOBJECT("myclass2", "myclasslib.vcx" )
>> *-- Error message:
>> *-- FIELD_CONTAINER is a method, event, or object
>>ENDIF
>>
>>
>>What am I am missing? TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham