Tuto WINDEV 25

4 Summary Simple operations on the variables.................................................................................................................... 48 Tips ................................................................................................................................................49 Details of variable type: the String variables..................................................................................................... 49 The String type.......................................................................................................................................49 Practical example..................................................................................................................................50 Details of another variable type: the arrays....................................................................................................... 54 Declaration............................................................................................................................................54 Filling an array and accessing the elements........................................................................................54 Advanced arrays....................................................................................................................................55 Lesson 2.2. The conditional statements Overview............................................................................................................................................................... 57 The IF and SWITCH statements.......................................................................................................................... 57 The IF statement....................................................................................................................................57 The SWITCH statement..........................................................................................................................58 Practical example: Using the IF and SWITCH statements................................................................................ 59 Project used...........................................................................................................................................59 Creating the window..............................................................................................................................60 Creating the window controls for the conditional IF statement...........................................................60 Conditional IF statement.......................................................................................................................61 Creating the window controls for the conditional SWITCH statement.................................................62 SWITCH statement.................................................................................................................................62 Lesson 2.3. The loops Overview............................................................................................................................................................... 66 The FOR statement................................................................................................................................66 The LOOP statement..............................................................................................................................66 The WHILE statement............................................................................................................................67 Practical example: Using loops........................................................................................................................... 68 Project used...........................................................................................................................................68 Creating the window..............................................................................................................................68 Creating controls....................................................................................................................................68 Window test............................................................................................................................................ 71 Lesson 2.4. The procedures Overview............................................................................................................................................................... 73 Types of procedures............................................................................................................................................. 73 Creating and calling a procedure........................................................................................................................ 73 Global procedure...................................................................................................................................73 Local procedure.....................................................................................................................................73 Internal procedure................................................................................................................................. 74 Calling a procedure................................................................................................................................ 74 Procedure parameters.........................................................................................................................................74 What is a parameter?............................................................................................................................ 74 How to use the parameters?.................................................................................................................75 Mandatory or optional parameters?..................................................................................................... 76

RkJQdWJsaXNoZXIy NDQ0OA==