Finding+the+version+number

//by Richard Russell, January 2010//

You can discover the version number of **BBC BASIC for Windows** using the following procedure: code format="bb4w" DEF FNversion LOCAL F%, V$     F% = OPENOUT(@tmp$+"version.txt") OSCLI "OUTPUT "+STR$F% *HELP *OUTPUT 0 PTR #F% = 0 INPUT #F%,V$ CLOSE #F% = RIGHT$(V$,5) code You can call the procedure in a context such as this: code format="bb4w" version$ = FNversion PRINT version$ code