Create a property whose type is component

Forum Forums Visual Components 4.1 Python Programming in VC Create a property whose type is component

This topic contains 0 replies, has 1 voice, and was last updated by Avatar wangchengyang 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16175
    Avatar
    wangchengyang
    Participant

    I wanna to create a property whose type is component , and something was found in help file as figure below. I tried such a statement:

    comp.createProperty (Ref<Component>,’Component’)

    and yes,failed. What’s the problem?

     

    #16177
    Johnny
    Johnny
    Participant

    If you want to create a property with a type like “Ref<xy>” you have to pass the type as a string like this:

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.