- Jun 6, 2020
- 11,517
- 4,383
Hi,
I want to implement a sub that can receive many types of classes as parameter (e.g. CustomLabel, CustomTextField etc.). Today I'm doing the following:
B4X:
I would like to implement something like:
B4X:
"element As CustomComponent" instead of "element as Object".
How can this be accomplished?
And... What is the best way to handle the component type inside the sub? (is "If element Is CustomLabel Then" a good solution ?)
Thank you very much.
I want to implement a sub that can receive many types of classes as parameter (e.g. CustomLabel, CustomTextField etc.). Today I'm doing the following:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
How can this be accomplished?
And... What is the best way to handle the component type inside the sub? (is "If element Is CustomLabel Then" a good solution ?)
Thank you very much.
برای دیدن لینک ها باید ثبت نام کنید