Statement: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "A '''statement''' is, as far as BASIC is concerned, a keyword that can be executed in run-time which doesn't return any value. It can contain several arguments or no arguments at all. The arguments in a statement are usually not enclosed with paranteses. When a graphical x-coordinate and y-coordinate is to be specified they are enclosed with paranteses though. {{PageExamples}} ''Example 1:'' Demonstrates how x- and y-coordinates are enclosed with paranteses (in...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


The arguments in a statement are usually not enclosed with paranteses. When a graphical x-coordinate and y-coordinate is to be specified they are enclosed with paranteses though.
The arguments in a statement are usually not enclosed with paranteses. When a graphical x-coordinate and y-coordinate is to be specified they are enclosed with paranteses though.




Line 9: Line 8:
''Example 1:'' Demonstrates how x- and y-coordinates are enclosed with paranteses (in graphics).
''Example 1:'' Demonstrates how x- and y-coordinates are enclosed with paranteses (in graphics).
{{CodeStart}}
{{CodeStart}}
{{Cl|SCREEN (statement)|SCREEN}} 13
{{Cl|SCREEN}} 13
x = 160
x = 160
y = 100
y = 100
Line 23: Line 22:
{{Cl|PRINT}} "X"
{{Cl|PRINT}} "X"
{{CodeEnd}}
{{CodeEnd}}




{{PageSeeAlso}}
{{PageSeeAlso}}
*[[Function (explanatory)]]
* [[Function (explanatory)]]
*[[Argument]]
* [[Argument]]
 




{{PageNavigation}}
{{PageNavigation}}

Latest revision as of 21:37, 2 February 2023

A statement is, as far as BASIC is concerned, a keyword that can be executed in run-time which doesn't return any value. It can contain several arguments or no arguments at all.


The arguments in a statement are usually not enclosed with paranteses. When a graphical x-coordinate and y-coordinate is to be specified they are enclosed with paranteses though.


Examples

Example 1: Demonstrates how x- and y-coordinates are enclosed with paranteses (in graphics).

SCREEN 13
x = 160
y = 100
PSET (x, y), 15


Example 2: Demonstrates how row- and column-coordinates are not enclosed with paranteses (in text).

row = 12
column = 40
LOCATE row, column
PRINT "X"


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link