- Jun 6, 2020
- 11,517
- 4,383
I think I may be missing something obvious here, but I can't find the solution either in my head or the forums.
I'm trying to avoid Code Smell #7 -
Can I use a For Each loop to assign a value to multiple global variables, or elements of a custom type?
E.g. In the following, the For Each loop does not set the global variables to zero
B4X:
Logs..:
Similarly, can I set multiple elements of a custom type to the same value?
B4X:
I'm trying to avoid Code Smell #7 -
برای دیدن لینک ها باید ثبت نام کنید
Can I use a For Each loop to assign a value to multiple global variables, or elements of a custom type?
E.g. In the following, the For Each loop does not set the global variables to zero
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
B4X:
Sub Process_Globals...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید