Data Types and Data Structures in App Inventor 2

Understanding Data Types and Data Structures is crucial when creating apps in App Inventor 2. These fundamental concepts determine how information is handled and organized within your app. This page explains the main data types and data structures available in App Inventor 2.

Data Types

A data type specifies the kind of data an individual piece of information represents. The primary data types used in App Inventor 2 are:

1. Text (String)

  • Description: Represents characters or sequences of characters. Messages like “Hello", user names, addresses, and any other text-based data are of the Text type. Even things that look like numbers, such as phone numbers that aren’t used for calculations, are often treated as Text.
  • Blocks: Found in the Text category, including the "" (empty text) block and the join block.
  • Examples: "Hello World", "123 Main St", the value of TextBox1.Text.

2. Number

You need to be logged in to view the rest of the content. Please . Not a Member? Join Us