Microsoft Small Basic
RSS

Navigation





Quick Search
»
Advanced Search »

PoweredBy

How to handle common Small Basic Errors

RSS
Modified on 2012/01/09 22:34 by 118.71.68.60 Categorized as Errors
This page is a work in progress

Encountered unexpected end of line parsing method call.

This error occurs when you forget something at the end of a line. One thing is a parenthesis.
example: TextWindow.WriteLine("Hello World" 'note: no parenthesis

Expected EndFor but could not find one in the right place.

Expected EndIf but could not find one in the right place.

Expected EndSub but could not find one in the right place.

Expected EndWhile but could not find one in the right place.



Expected a variable or object at this location.

The operation '{0}.{1}' is expected a return value, but it doesn't return anything.
note: {0} and {1} can be various identifies such as 'TextWindow.Write'
example: a = TextWindow.Write("Hello World")

Expected an expression here.
example: a = 'oops! we forgot to supply an expression

Expected {0} here, but could not find.
note: {0} can be various things
example:
If (A = 1)
EndIf

Expected a condition here.
example:
If ()
EndIf

Subroutine '{0}' can only be assigned to an event.
note: {0} can be various identifiers

Cannot find property '{0}' in '{1}'.
note: {0} and {1} can be various identifies such as Cannot find property 'Hour' in 'Clock'.

The property '{0}' in '{1}' is read-only and cannot be assigned a value.
example: Clock.Hour = 32



Subroutine '{0}' is not defined.

'{0}' is a Subroutine, but is being used as a variable.

Another Subroutine exists with the same name '{0}'

Expected an expression after {0}.

Cannot find operation '{0}' in '{1}'.

The variable '{0}' is used, but its value is not assigned. Are you sure you have spelled it correctly?

Cannot find label '{0}' used in Goto statement

Another label exists with the same name '{0}'

An ElseIf statement is only valid when combined with an If..Then statement. It is unexpected at this position.

Operation '{0}.{1}' is supplied {2} arguments, but takes {3} arguments.

{0} unexpected at this location.

Unexpected token {0} found.

Unrecognized statement encountered.



vietnam visa jam tangan vietnam tours jam tangan vietnam visa on arrival

ScrewTurn Wiki version 3.0.5.600. Some of the icons created by FamFamFam.