📋 المحتوى المنظم
📖 محتوى تعليمي مفصّل
نوع: محتوى تعليمي
برمجة قائمة الطعام في مطور التطبيقات MIT
نوع: محتوى تعليمي
عليك أن تنشئ متغيرًا جديدًا وتعين قيمة محددة له من القائمة؛ لكي تتم عملية اختيار قائمة الأصناف.
نوع: محتوى تعليمي
أنشئ متغيرًا عامًا جديدًا باسم "selection" وقم بتوصيله بلبنة " A text String " (سلسلة نصية " ").
نوع: محتوى تعليمي
هذه الخطوة ضرورية لكي يعمل التطبيق بشكل صحيح عند تثبيته على الهاتف الذكي.
نوع: محتوى تعليمي
ستبرمج الآن قائمة الأطعمة التي أنشأتها، وذلك باستخدام الأوامر الآتية حيث سيتم تفعيل القائمة وتصبح جاهزة للاستخدام.
نوع: محتوى تعليمي
لعرض القائمة:
نوع: QUESTION_ACTIVITY
من لوحة Blocks (اللبنات)، اضغط على زر القائمة Foods .
نوع: QUESTION_ACTIVITY
اضغط على لبنة do Foods.BeforePicking (عندما تكون الأطعمة.قبل الاختيار) واسحبها وأفلتها في منطقة البرمجة. 2
نوع: QUESTION_ACTIVITY
اضغط على لبنة set Foods.Elements to (عين عناصر.الأطعمة إلى) ثم اسحبها وأفلتها في لبنة do Foods.BeforePicking (عندما تكون الأطعمة.قبل الاختيار). 3
نوع: QUESTION_ACTIVITY
في لوحة Blocks (اللبنات)، اضغط على قسم Variables (المتغيرات). 4
نوع: QUESTION_ACTIVITY
اضغط على لبنة get (احصل على) ، واسحبها وأفلتها إلى اللبنة set Foods.Elements to (عين عناصر الأطعمة) إلى داخل اللبنة do Foods.BeforePicking (عندما تكون الأطعمة.قبل الاختيار). 5
نوع: QUESTION_ACTIVITY
اضغط على السهم الموجود في لبنة get (احصل على) وحدد global Foods. 6
نوع: METADATA
145
🔍 عناصر مرئية
A programming block from MIT App Inventor, showing the initialization of a global variable named 'selection' to an empty text string.
Healthy_Food
A screenshot of the MIT App Inventor Blocks editor interface. The left side shows the 'Blocks' palette with categories like Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, and components like Screen1, Tips, Foods. The right side is the main programming canvas, displaying several code blocks. Key blocks include 'when Foods.AfterPicking do', 'when Foods.BeforePicking do' (with a '2' next to it), 'when Tips.Click do open another screen screenName Screen2', 'initialize global Foods to make a list' (containing items: اللحوم والأسماك, الخضروات, الفواكه, منتجات الألبان, المكسرات), and 'initialize global selection to " "'.
📄 النص الكامل للصفحة
برمجة قائمة الطعام في مطور التطبيقات MIT
عليك أن تنشئ متغيرًا جديدًا وتعين قيمة محددة له من القائمة؛ لكي تتم عملية اختيار قائمة الأصناف.
أنشئ متغيرًا عامًا جديدًا باسم "selection" وقم بتوصيله بلبنة " A text String " (سلسلة نصية " ").
هذه الخطوة ضرورية لكي يعمل التطبيق بشكل صحيح عند تثبيته على الهاتف الذكي.
ستبرمج الآن قائمة الأطعمة التي أنشأتها، وذلك باستخدام الأوامر الآتية حيث سيتم تفعيل القائمة وتصبح جاهزة للاستخدام.
لعرض القائمة:
من لوحة Blocks (اللبنات)، اضغط على زر القائمة Foods .
اضغط على لبنة do Foods.BeforePicking (عندما تكون الأطعمة.قبل الاختيار) واسحبها وأفلتها في منطقة البرمجة. 2
اضغط على لبنة set Foods.Elements to (عين عناصر.الأطعمة إلى) ثم اسحبها وأفلتها في لبنة do Foods.BeforePicking (عندما تكون الأطعمة.قبل الاختيار). 3
في لوحة Blocks (اللبنات)، اضغط على قسم Variables (المتغيرات). 4
اضغط على لبنة get (احصل على) ، واسحبها وأفلتها إلى اللبنة set Foods.Elements to (عين عناصر الأطعمة) إلى داخل اللبنة do Foods.BeforePicking (عندما تكون الأطعمة.قبل الاختيار). 5
اضغط على السهم الموجود في لبنة get (احصل على) وحدد global Foods. 6
145
--- VISUAL CONTEXT ---
**DIAGRAM**: Untitled
Description: A programming block from MIT App Inventor, showing the initialization of a global variable named 'selection' to an empty text string.
Context: Illustrates the declaration and initialization of a global variable in App Inventor as part of the programming steps.
**FIGURE**: Healthy_Food
Description: A screenshot of the MIT App Inventor Blocks editor interface. The left side shows the 'Blocks' palette with categories like Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, and components like Screen1, Tips, Foods. The right side is the main programming canvas, displaying several code blocks. Key blocks include 'when Foods.AfterPicking do', 'when Foods.BeforePicking do' (with a '2' next to it), 'when Tips.Click do open another screen screenName Screen2', 'initialize global Foods to make a list' (containing items: اللحوم والأسماك, الخضروات, الفواكه, منتجات الألبان, المكسرات), and 'initialize global selection to " "'.
Context: Provides a visual guide for the programming steps described in the text, showing the App Inventor interface and specific code blocks.