4D v13Video script |
||
|
4D v13
Video script
Video script
In the previous video, we used a variable to display the number of records found according to the table where the search was performed. So we're going to create a test project form called "test variables" in order to show how variables work. Let's create a first variable named v1 and that we'll make non-enterable. This variable does not actually exist in memory; there is just an area on screen that represents the contents of the variable if and when it exists. We're going to:
We're going to display an alert that expects an argument of the text type so we're going to convert variable v1 after multiplying it by 12. Now let's test the form:
Here is the first use of a simple variable. The principle is the same with:
If we test the form:
4D includes many functions for processing strings. Let's take the case of an array.
To assign values to the array, we're going to indicate that:
As concerns the use of the array, we can do it as shown here for example: 1st array value + a space + 2nd array value + 3rd array value. Now let's test the result:
So there we have it, a simple and quick overview of how to use variables. |
PROPERTIES
Product: 4D |