Create a property whose type is componentForum › Forums › Visual Components 4.1 › Python Programming in VC › Create a property whose type is componentTagged: create propertyThis topic contains 0 replies, has 1 voice, and was last updated by wangchengyang 5 months, 3 weeks ago. Viewing 2 posts - 1 through 2 (of 2 total)Author Posts 09/08/2019 at 10:36 #16175 wangchengyangParticipantI 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? 0 09/08/2019 at 11:02 #16177 JohnnyParticipantIf you want to create a property with a type like “Ref<xy>” you have to pass the type as a string like this:Python comp.createProperty('Ref<Component>', 'Component')1comp.createProperty('Ref<Component>', 'Component') 0Author Posts Viewing 2 posts - 1 through 2 (of 2 total)You must be logged in to reply to this topic.