WINDEV, WINDEV 28 Express, programming variables, string operators, comparison operators, tables, input fields, software development, WD project
Unlock the full potential of WINDEV 28 Express with our comprehensive guide. Discover how to master variables, operators, and string manipulation to streamline your development process. Learn about searching for character strings, utilizing specific operators on strings, and creating efficient tables. Dive into the world of WD projects and build your first Windows application with ease. Explore comparison operators, integer tables, and string handling techniques. Understand how to leverage the TRACE function for debugging and customize input fields with the Content tab. Take your WINDEV skills to the next level and start building robust applications today.
[...] Everything between brackets will constitute our character string On can assign to a character string the value coming from a field (here SAI_Nom) We have specific operators for character strings The WD project - MY FIRST WINDOWS We will build this project: We will create our new WINDOW Click on WINDOW Then on WINDOW Click on VIERGE, then on OK In this WINDOW, we are going to ADD A TEXT FIELD And we are going to place the FIELD in the WINDOW On double-click on it We open the FIELD INPUT MENU We will call this field: TEXT The label will also be TEXT We will click on the CONTENT tab We will add a default text: WINDEV is a formidable tool We will click on OK to validate We will expand the field so that the text is visible We will add a first BUTTON (which will serve to perform a search in the character string) We stay in the CREATION panel and we will look for the BUTTON that we place below the TEXT FIELD We position ourselves on the BUTTON LABEL and we press the SPACE BAR: We will type: Search a string We will ENTER CODE ON THE BUTTON - We click on Search a string - Then we click on CODE with the RIGHT MOUSE BUTTON We are going to enter the following CODE: Here is what the code does: We start by defining a STRING TO SEARCH This is a string to which we assign the value WINDEV Then we define a NUMERIC VARIABLE called POS Then, we assign to the VARIABLE POS the position of the string of characters that is to be searched (WiNDEV) in the text that has been entered This is returned by the POSITION function, which will return the position of the second string in the first In Chain to search, we type: Then, if the POSITION = 0 We type Si = One defines the condition: If Pos = 0 This means that the TEXT HAS NOT BEEN FOUND One displays the APPROPRIATE MESSAGE Otherwise, one displays the position of the TEXT that was found And one adds the message of the TEXT that was found We will test the WINDOW right away One clicks on SEARCH A CHAIN The message is displayed: WINDEV FINDS AT POSITION 1 Tables The TABLES are a type of VARIABLE a bit particular It is actually a set of variables of the same type that are numbered, rather than creating a variable that would be called A1, A2, A3?. [...]
[...] Integer Tables . The TRACE function . Rapid Initialization of a Table VARIABLES - OPERATORS As in all languages, variables are manipulated by operators Examples : I will create a new BUTTON in which I will place code One positions oneself on the BUTTON Right-click with the mouse One clicks on CODE We will enter several variables The 1ère will be called Cpt Will be of type INTEGER The 2ème will be called V1 It will also be of type INTEGER The 3ème will be called Res It will be of type NUMERIQUE I will give them VALUES We will perform operations If I write: In this case, Cpt will be worth 13 (10 + The OPERATORS are : For ADDITION: + For SUBTRACTION: - For MULTIPLICATION: * For DIVISION: / To INCREMENT A VARIABLE: AFTER A VARIABLE (adds One can follow the VARIABLE with to tell it that we are going to DECREMENT (we remove 1 from the VARIABLE) Cpt will be 13 + 1 = 14 In this case Cpt will be = to 13 If I want to ADD or SUBTRACT a more important value: Cpt = Cpt-8 Cpt = Cpt - 8 Cpt takes a new value Cpt is equal to 13 Auquel on retire 8 So that makes 5 This line can also be written in another way: Cpt 8 This is the abbreviated way of writing the same thing as what we have above Same for addition: Cpt 8 To check the result: Info(Cpt) We also have the COMPARISON OPERATORS: LESS THAN GREATER THAN LESS THAN OR EQUAL TO GREATER THAN OR EQUAL TO DIFFERENT FROM THE VARIABLES - THE STRINGS Let's delve into character strings A character string is a sequence of letters, numbers, characters, which will constitute text, that we will assign to a variable A character string is defined in the same way as a variable Name is a string Then we assign it a value with the = sign Name = "Dupont" Like any other variable We can also declare a string variable over multiple lines in this way: We declare the variable: Machaîne is a string Then, we write: Machaîne = [ We open the bracket Then we close the bracket To open the brackets on a keyboard, use the appropriate key combinations according to your operating system: Alt Gr + 5 for the opening bracket [ and Alt Gr + ° for the closing bracket ] on a French keyboard. [...]
[...] The Content tab . Search for a character string 4 - THE TABLES . String Tables . [...]
[...] WINDEV 28 Express - The variables WINDEV 28 EXPRESS The variables BOOK 2/2 SUMMARY : The VARIABLES - THE OPERATORS . The different operators . The comparison operators 2 - The VARIABLES - THE STRINGS . [...]
[...] The strings . The specific operators on strings 3 - The WD project - MY FIRST WINDOWS . The Input Fields menu . [...]
APA Style reference
For your bibliographyOnline reading
with our online readerContent validated
by our reading committee