Writing code without variables, variables in the program we have defined can be used, it is convenient. In the painting system prototype, also can not do without variables, change
Volume It needs to be created and assigned a value. This article mainly introduces the creation and use of global variables and local variables.
The main difference between global variables and local variables in axsure is that global variables are available in all page use case operations and are always used during the prototype run
Save while the local variable is valid only for the current use case.
Application examples
Click Login, if you verify the user name and password is correct, then you need to save the user name to the global variable, in other Windows to use the user name just
To remove the value of a variable from a global variable.
1. Create
In the Use Case editor, select Set Variable value-new variable named UserID
2. Assign Value
Select part text, part name select UserID, where the userid is the name of the login form user name text box. This means that the text in the UserID text box is assigned to the global variable UserID.
3. Use
When entering the card number, fill out the recharge amount, click OK, after the successful recharge, display the recharge information, this information will be automatically added to the text box, it
How did they get added?
(1) Add the "Recharge success" use case to the "OK" button
(2) Setting text display content
(3) Set local variables, assign them, and then add local variables after the corresponding content. Where the operator item takes the global variable userid,
Other such as, card number, recharge amount to take local variable cardid,recharge.
Summarize
Variables play an important role in the prototype diagram, and without these variables, it is more complicated and difficult to design an interactive effect. Through this
In this paper, we should know the difference between global variables and local variables, and the scope of action.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Use of variables in Axsure