Use of variables in Axsure

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.