Navigation:  thinBasic Modules > Console > Console_ProgressBar >

Console_SetProgressBarChar

Previous pageReturn to chapter overviewNext page

 

Description

 

Function to set ASCII code of character used when rendering progress bar in console

 

Syntax

 

OldAsciiCode = Console_SetProgressBarChar(NewAsciiCode)

 

Returns

 

Previous ASCII code of progress bar character

 

Parameters

 

Name

Type

Optional

Meaning

NewAsciiCode

Number

No

ASCII code of character

 

Remarks

 

The default progress bar character is 42.

 

Restrictions

 

See also

 

Console_GetProgressBarChar

 

Examples

 

USES "Console"

PRINTL "Character used To render PROGRESSBAR: " + CHR$(Console_GetProgressBarChar)

 

Console_SetProgressBarChar(65)

PRINTL "Character used To render PROGRESSBAR: " + CHR$(Console_GetProgressBarChar)

 

WAITKEY