Variable declaration, global variables, WINDEV 28 Express, project level variables, variable scope, string variables, boolean variables, integer variables, variable types, project initialization, code declaration, memory area, data manipulation, numerical variables, textual variables, local variables, global variable declarations, WINDEV programming, software development, programming variables, variable naming, data storage, code optimization, programming concepts, software engineering, application development, WINDEV 28, variable usage, programming fundamentals, coding practices, variable management, project code, event handling, initialization event, code writing, programming syntax, variable values, data types, boolean values, string values, integer values, variable declaration syntax
Unlock the full potential of your WINDEV projects by mastering variable declarations. Discover how to create global variables accessible throughout your entire project, regardless of the window, procedure, or code. Learn the ins and outs of variable types, including boolean, integer, and string, and understand how to declare them effectively. With this knowledge, you'll be able to manipulate data with ease, perform operations, and comparisons, and take your project to the next level. Dive into the world of WINDEV 28 Express and start optimizing your project's performance today.
[...] We will then be able to perform operations on these data, comparisons, find them later, manipulate them, etc. We are going to create a NEW WINDOW and type a little bit of CODE, to see how the VARIABLES are declared, and how they are used We create a WINDOW : We click on the NEW button In NEW, we click on WINDOW We click on WINDOW again We click on BLANK Then we click on OK We are going to call this window VARIABLE Then on RECORD One positions oneself on the title bar of the WINDOW And one clicks with the RIGHT MOUSE BUTTON One types VARIABLE Then one clicks on APPLY And finally on OK The window has the title: VARIABLE One resizes the WINDOW One will add a BUTTON in the WINDOW One clicks on BUTTON One drags and positions the BUTTON in the window And one releases the BUTTON The BUTTON gets stuck in CREATION One right-clicks on the BUTTON One clicks on the CODE option We are going to DECLARE A VARIABLE A variable declaration is done by typing the NAME I want to give to the variable, followed by 'IS or 'IS AN' And the TYPE OF THE VARIABLE We are going to suppose that I want to manipulate a PRICE I will declare a VARIABLE that I will call PRICE We will then type: IT IS A FINANCIAL EXPERT (FINANCIAL EXPERT being a type of variable) And we choose FINANCIAL EXPERT from the list The VARIABLE is green in color (Price) It is currently declared but not used Before Price, we notice that MO has been added by the program, to make MOPRIX (mo as monetary) I will enter in the line below: Price = 15.26 I assign a VALUE to my variable (15.26) - I have a MEMORY ZONE called Price that I declared of type MONETARY This indicates to WINDEV that I will store money: a value representing money The value I give it is 15.26 There are many types of VARIABLES: On the line below, we type: mavariable is a N.B. : BOOLEEN corresponds to TRUE or FALSE: 1 or 0 One can declare a string of characters: mavariable is a One types string Below Mavariable is a string, One types : Mavariable = On tape (double-guillemets for any string of characters) The GUILLEMETS are the delimiters of the string of characters Inside the GUILLEMETS, one types: Hello, do you find this course interesting? [...]
[...] Save code in a Button . The Creation Menu . Variable Declaration . The Monetary Variable . String Declaration . [...]
[...] Here is how to do it : 1. Declaration in the event 'Project Initialization' - Open the project code (Project > Code). - In the event"Initialisation du projet, declare your variable with the keywordGLOBAL. GLOBAL MyProjectVariable is an integer = 0 This variable will then be visible everywhere in the project. [...]
[...] WINDEV 28 Express - The variables WINDEV 28 EXPRESS SUMMARY : The VARIABLES . Definition . Declaration . Registration . The Button . [...]
[...] Local Variables 2 - The SCOPE OF VARIABLES . Global Variable Declarations . Global variables declared throughout the project 1 - variables What is a variable ??? A VARIABLE is a memory area in our program that will have a name, and will contain data. These data can be : - Numerical - Textual, etc? [...]
APA Style reference
For your bibliographyOnline reading
with our online readerContent validated
by our reading committee