:''Explanation:'' The SCREEN function returns the [[ASCII]] code for "H" and the color 9.
''Example 3:'' Finding the current program path placed on the screen using [[FILES]] and the SCREEN function in SCREEN 0.
{{CodeStart}}
{{Cl|SCREEN}} 0, 0, 0, 0
{{Cl|CLS}}
{{Cl|PRINT}} "This is a directory test..."
{{Cl|SCREEN}} 0, 0, 1, 0
{{Cl|COLOR}} 0 'blank out the screen text
{{Cl|FILES}} "qb64.exe" 'the current program's filename can also be used
{{Cl|FOR...NEXT|FOR}} i = 1 {{Cl|TO}} 80
a$ = a$ + {{Cl|CHR$}}({{Cl|SCREEN (function)|SCREEN}}(1, i)) 'scan the black text on the screen
{{Cl|NEXT}}
{{Cl|CLS}}
{{Cl|COLOR}} 7
a$ = {{Cl|RTRIM$}}(a$)
{{Cl|SLEEP}}
{{Cl|SCREEN (statement)|SCREEN}} 0, 0, 0, 0
{{Cl|LOCATE}} 3, 1: {{Cl|PRINT}} "The current directory is: "; a$
{{Cl|END}}
{{CodeEnd}}
{{small|Code by Pete from the N54 QB site}}
:''Explanation:'' The SCREEN page one is used to hide the [[FILES]] display using COLOR 0. The [[SCREEN (function)|SCREEN]] function reads the top of the screen page text and creates the current path string. It is then printed on the visual page.