انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents

The text box and “join”

Section 3: Typing and mathsLesson 3.1 · ⏱ 8 min
When “Greet” is tapped: Label1 = join “Hello ” with the text of TextBox1
When “Greet” is tapped: Label1 = join “Hello ” with the text of TextBox1
We typed “Youssef” and tapped “Greet”
We typed “Youssef” and tapped “Greet”
  • text of TextBox1 reads what the user typed.
  • create text with (join) sticks two or more pieces of text together.

📌 Another example: the name and the age

We put words from two boxes into one sentence.

The design
The design
The blocks
The blocks
In the lab: after typing and tapping
In the lab: after typing and tapping

Test yourself

1. You typed “Sara” and tapped “Greet”. What appears?
✍️ Practise
The challenge: the text box.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

What you type appears in the title.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: Robo

Medium

The first and last name on one line.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: Sara Ahmed

Hard

Type a number, and its double appears.

👀 Show the solution
The design
The design
The blocks
The blocks
In the lab
In the lab

Result: Double = 14

Finished the lesson? Mark it so your progress counts.