Stops the execution of the script thread.
1 system.prompt
<system.prompt
name='name'
type='type'
default='default'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the variable. | |||
Atype | string | ||||
Adefault | integer |
Returns | |
---|---|
Type | Description |
string | Value introduced by the user. |
Example
Copy
<xsql-script name='system_prompt_sample1'> <body> <set name='nombre'> <system.prompt>Introduzca su nombre: </system.prompt> </set> <println>The name which has been introduced is: <nombre/></println> </body> </xsql-script>
The result on screen would be the following:
Copy
Introdes its name: _
The execution of the script stops waiting for the user to enter a value.
Copy
Introduces its name: Smith_
Once the name is written, pressing the car return key, the execution of the script continues and shows the following text:
Copy
The name introduced is: Smith
You can observe as the informed value by the user, is stored in a variable called 'name', which is used in the screen printing.
Example
Copy
<xsql-script name='system_prompt_sample2'> <body> <null name='nombre' type='string' /> <system.prompt name='name'>Introduces its name: </system.prompt> <println>Tha name that has been introduced is: <name/></println> </body> </xsql-script>
The value informed by the user is assigned, in the variable name, which is previously declared, of String type and initialized to null.