ERR (edited)

Forum for discussion about the documentation project.
speedfixer
Posts: 389
Joined: Nov 28, 2012 1:27
Location: California

ERR (edited)

Postby speedfixer » Aug 29, 2019 6:06

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
Posts: 9182
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: ERR (edited)

Postby fxm » Aug 29, 2019 8:08

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

Return to “Documentation”

Who is online

Users browsing this forum: mrb and 47 guests