סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > VariableMap > getVariableUsesById
שיטת VariableMap.getVariableUsesById()
מוצאים את כל השימושים של משתנה בעל שם.
Signature:
getVariableUsesById(id: string): Block[];
פרמטרים
פרמטר |
סוג |
תיאור |
id [מזהה] |
מחרוזת |
המזהה של המשתנה שרוצים למצוא. |
החזרות:
חסימה[]
מערך של שימושים בבלוקים.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-22 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-22 (שעון UTC)."],[[["The `getVariableUsesById` method locates all blocks using a specific variable within the workspace."],["It takes the variable's ID as input and returns an array of block instances referencing that variable."],["The returned array contains [Block](./blockly.block_class.md) objects representing the identified block usages."]]],[]]