Difference between revisions of "Illegal Function"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
ERROR Code 5
+
'''Illegal Function Call''' returns ERROR Code 5 when a parameter does not match the function type or exceeds function limitations.
  
:A parameter passed does not match the function type or exceeds certain function limitations.
 
  
# Graphic objects such as [[LINE]], [[CIRCLE]], [[PSET]], [[PRESET]] and [[DRAW]] statements must use a graphic [[SCREEN]] mode other than the default SCREEN 0.
+
1) Graphic objects such as [[LINE]], [[CIRCLE]], [[PSET]], [[PRESET]] and [[DRAW]] statements must use a graphic [[SCREEN]] mode other than the default SCREEN 0.
# [[GET (graphics statement)]] and [[PUT (graphics statement)]] cannot use offscreen coordinates in QB. QB64 allows offscreen GETs, but PUT statements can only be used offscreen using the PUT [[_CLIP]] syntax. Graphic SCREEN modes only!
 
  
 +
2) [[GET (graphics statement)]] and [[PUT (graphics statement)]] cannot use offscreen coordinates in QB. '''QB64''' allows offscreen GETs, but PUT statements can only be used offscreen using the PUT [[_CLIP]] syntax. Graphic [[SCREEN]] modes are 1, 2, 7 through 13 only!
  
:''Return to'' [[ERROR Codes]]
+
 
 +
<center>''Return to'' [[ERROR Codes]]</center>
 +
 
 +
 
 +
{{PageNavigation}}

Latest revision as of 20:04, 11 February 2011

Illegal Function Call returns ERROR Code 5 when a parameter does not match the function type or exceeds function limitations.


1) Graphic objects such as LINE, CIRCLE, PSET, PRESET and DRAW statements must use a graphic SCREEN mode other than the default SCREEN 0.

2) GET (graphics statement) and PUT (graphics statement) cannot use offscreen coordinates in QB. QB64 allows offscreen GETs, but PUT statements can only be used offscreen using the PUT _CLIP syntax. Graphic SCREEN modes are 1, 2, 7 through 13 only!


Return to ERROR Codes



Navigation:
Keyword Reference - Alphabetical
Keyword Reference - By Usage
Main Wiki Page