Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 102 - 2612 Digimind C6
P. 102

    4.  Text Blocks: These blocks are used to work with words and characters. You can join, split,
                        change and compare text. Example:

                                         This string can contain  any characters (letters, numbers or other special

                                         characters). On App Inventor it will be considered a Text object.

                               join      Appends all of the inputs to make a single string. If there are no inputs, it
                                         returns an empty string.

                      5.  Lists Blocks: These blocks  help you  store  and manage  collections  of items.  You  can add,
                        remove or find items in a list. Example:

                                create empty list   Creates an empty list with no element.

                                length of list  list  Returns the number of items in the list.

                      6.  Dictionaries Blocks: These blocks store data in key-value pairs. They help you organise and
                        access information using labels. Example:

                                                    This block creates a dictionary without any key-value pairs.
                            create empty dictionary

                                                    This block removes the key-value mapping in the dictionary for the
                               remove entry for key
                                                    given key.
                                  from dictionary

                      7.  Colors Blocks: These blocks  allow you  to  pick  and use colours  in your  app.  You  can set
                        background colours or text colours using these. Example:

                                                    This basic colour block is a small square block that shows a specific
                                                    colour in the middle, representing the colour stored inside it.

                        make color  make a list  255  This block takes in a list of 3 or 4 numbers. These numbers in this list
                                            0
                                                    represent values in an RGB code.
                                            0

                      100   Premium Edition-VI

| 97 98 99 100 101 102 103 104 105 106 107 |