Please enable JavaScript to view this site.

thinBasic Help Manual

Navigation: ThinBASIC Modules > Console

Console_SaveScreen

Scroll Prev Top Next More

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Save a console screen portion into a string buffer.

 

Syntax

 

s = Console_SaveScreen(x1, y1, x2, y2)

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

x1

Number

No

Starting x position

y1

Number

No

Starting y position

x2

Number

No

Ending x position

y2

Number

No

Ending y position

 

Remarks

 

Returning string will contain an header record information followed by char/attribute pair bytes for every screen position saved.

 

Header record has the following structure:

Type tScreenBuffersInfo

  id      As Long     '---Identifier of a screen buffer

  x1      As Long     '---Start upper/left corner x

  y1      As Long     '---Start upper/left corner y

  x2      As Long     '--- End lower/right corner x

  y2      As Long     '--- End lower/right corner y

  nCols   As Long     '---Number of columns in buffer

  nRows   As Long     '---Number of rows in buffer

End Type

 

Restrictions

 

See also

 

Examples

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software