B4X FEED itterate with For Each over global variables or custom type

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: itterate with For Each over global variables or custom type است. این موضوع تا کنون 86 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع itterate with For Each over global variables or custom type
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
86
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
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:

Sub Process_Globals...


 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا