Revision history for KeyPgFlip


Revision [22042]

Last edited on 2017-12-13 02:50:49 by fxm [Changed "Sub" to "Function" and added the "Return Value" paragraph]
Additions:
The error code returned by ##**Flip**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Flip**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.


Revision [22039]

Edited on 2017-12-13 02:40:06 by fxm [Changed "Sub" to "Function" and added the "Return Value" paragraph]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Flip** ( [[KeyPgByval|byval]] //frompage// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1, [[KeyPgByval|byval]] //topage// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1 ) [[KeyPgAs|as]] [[KeyPgLong|long]]
{{fbdoc item="ret"}}
Returns zero (##0##) if successful, or a non-zero error code to indicate a failure.
Deletions:
[[KeyPgDeclare|declare]] [[KeyPgSub|sub]] **Flip** ( [[KeyPgByval|byval]] //frompage// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1, [[KeyPgByval|byval]] //topage// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1 )


Revision [21522]

Edited on 2016-08-09 11:41:46 by fxm [In example, put 'ScreenSet 1,0' in the loop is useless, and a 'Flip 1,0' is missing at the end to display the text]
Additions:
ScreenSet 1,0 'Sets the working page to 1 and the displayed page to 0
flip 1,0 'Copies our text from page 1 to page 0
Deletions:
ScreenSet 1,0 'Sets the working page to 1 and the displayed page to 0


Revision [20928]

Edited on 2016-03-13 01:03:45 by fxm [Formatting]
Additions:


Revision [20244]

Edited on 2016-02-10 16:00:36 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgSub|sub]] **Flip** ( [[KeyPgByval|byval]] //frompage// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1, [[KeyPgByval|byval]] //topage// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1 )
In normal graphics mode, ##**Flip**## is an alias for ##[[KeyPgPcopy|PCopy]]## and ##[[KeyPgScreencopy|ScreenCopy]]##. See ##[[KeyPgScreencopy|ScreenCopy]]## for details.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Flip""**##.
Deletions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Flip** ( [[KeyPgByval byval]] //frompage// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //topage// [[KeyPgAs as]] [[KeyPgLong long]] = -1 )
In normal graphics mode, ##**Flip**## is an alias for ##[[KeyPgPcopy PCopy]]## and ##[[KeyPgScreencopy ScreenCopy]]##. See ##[[KeyPgScreencopy ScreenCopy]]## for details.
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Flip""**##.


Revision [17495]

Edited on 2015-04-01 11:44:03 by DkLwikki [integer => long]
Additions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Flip** ( [[KeyPgByval byval]] //frompage// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //topage// [[KeyPgAs as]] [[KeyPgLong long]] = -1 )
Deletions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Flip** ( [[KeyPgByval byval]] //frompage// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, [[KeyPgByval byval]] //topage// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 )


Revision [15334]

Edited on 2011-10-02 11:12:43 by FxMwikki [In example, the two video pages must be #0 and #1, and ScreenSync is useless]
Deletions:
ScreenSync 'Waits for vertical refresh


Revision [15330]

Edited on 2011-10-02 10:21:09 by FxMwikki [In example, correction of video pages numbers (the two video pages must be #0 and #1)]
Additions:
ScreenSet 1,0 'Sets the working page to 1 and the displayed page to 0
Circle (n, 50),50 ,rgb(255,255,0) 'Draws a circle with a 50 pixel radius in yellow on page 1
flip 1,0 'Copies our circle from page 1 to page 0
Deletions:
ScreenSet 2,1 'Sets the working page to 2 and the displayed page to 1
Circle (n, 50),50 ,rgb(255,255,0) 'Draws a circle with a 50 pixel radius in yellow on page 2
ScreenSet 1,1 'Sets the working page to 1 and the displayed page to 1
flip 2,1 'Copies our circle from page 2 to page 1


Revision [14350]

Edited on 2009-08-29 21:54:15 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC


Revision [13131]

The oldest known version of this page was created on 2008-04-24 15:42:00 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode