ERR (edited)

Forum for discussion about the documentation project.
Post Reply
speedfixer
Posts: 606
Joined: Nov 28, 2012 1:27
Location: CA, USA moving to WA, USA
Contact:

ERR (edited)

Post by speedfixer »

edit:

I see the reference to some functions returning a 32 long, but this implies others might return something else?
For example, PRINT is not on that list.


david
fxm
Moderator
Posts: 12106
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: ERR (edited)

Post by fxm »

This list only applies to all keywords:
- which can be called in a syntax form of function (in an expression),
- and so called, which also return an error code.

PRINT can not be called in a syntax form of function.

Example of using a keyword (SCREENSYNC) as a function to return an error:

Code: Select all

Declare Sub testScreen ()


testScreen()
Print
Print "Any key to continue"
Sleep

Screen 12
testScreen()

Sleep


Sub testScreen ()
  If Screensync() <> 0 Then
    Print "Text screen"
  Else
    Print "Graphic screen"
  End If
End Sub

Sleep
Post Reply