* *
*
* * News
 • Daily news
 • Archived news

Columns
 • WildCard
 • Qbasic Articles
 • QB Comic!

Learning center
 • QB Books
 • Qbasic Lessons!
 • Qbasic FAQ
 • Newbies Section
 • Qbasic Tutorials

* *
*
*
*
*  
.ENVIRON$ Function Programming Example.

  QuickSCREEN      Details     Example      Contents      Index
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
ENVIRON$ Function Programming Example
This example uses the ENVIRON$ function to print the current settings
in the environment-string table:
 
CLS      ' Clear screen
I = 1
DO WHILE ENVIRON$(I) <> ""
    PRINT ENVIRON$(I)
    I = I + 1
LOOP
 
Sample Output
 
COMSPEC=C:\\COMMAND.COM
TMP=c:\\tmp
PATH=C:\\TOOLS;C:\IN
PROMPT=$ec4$l$ec7$p$ec4$g$ec7$eb1
INIT=c:\\tools
LIB=c:\\lib
INCLUDE=c:\nclude
* * ** * * * *