View Full Version : Usage of the APP_SCRIPTVERSION
Michael Clease
08-09-2008, 23:19
' Usage of the APP_SCRIPTVERSION Instruction example
'
' Displays the script version
'
' Written by Abraxas
'format #SCRIPTVERSION Major[.Minor[.Build[.Revision]]]
#SCRIPTVERSION 1.2.3.4
DIM sMSG as STRING
sMSG += "Full " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Full) + $CRLF
sMSG += "Major " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Major) + $CRLF
sMSG += "Minor " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Minor) + $CRLF
sMSG += "Revision" + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Revision) + $CRLF
sMSG += "Build " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Build) + $CRLF
MSGBOX 0, sMsg
marcuslee
09-09-2008, 01:06
Nice partial, but it seems you are missing a few things. I added just a few things, but basically it is still the code you came up with:
' Usage of the APP_SCRIPTVERSION Instruction example
'
' Displays the script version
'
' Written by Abraxas (Edited by Mark Lee)
#SCRIPTVERSION 1.3.0.1232 'A made-up scriptversion
DIM sMSG as STRING
sMSG = "Full " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Full) + $CRLF
sMSG += "Major " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Major) + $CRLF
sMSG += "Minor " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Minor) + $CRLF
sMSG += "Revision" + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Revision) + $CRLF
sMSG += "Build " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Build) + $CRLF
MSGBOX 0, sMsg
marcuslee
09-09-2008, 01:09
Why did this line:
#SCRIPTVERSION 1.3.0.1232 'A made-up scriptversion
not appear in my previous message?
The code should have looked like this:
' Usage of the APP_SCRIPTVERSION Instruction example
'
' Displays the script version
'
' Written by Abraxas (Edited by Mark Lee)
#SCRIPTVERSION 1.3.0.1232 'A made-up scriptversion
DIM sMSG as STRING
sMSG = "Full " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Full) + $CRLF
sMSG += "Major " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Major) + $CRLF
sMSG += "Minor " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Minor) + $CRLF
sMSG += "Revision" + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Revision) + $CRLF
sMSG += "Build " + $TAB + APP_ScriptVersion (%APP_ScriptVersion_Build) + $CRLF
MSGBOX 0, sMsg
Was it for some security reason?
Mark ???
ErosOlmi
09-09-2008, 03:51
Why did this line:
#SCRIPTVERSION 1.3.0.1232 'A made-up scriptversion
not appear in my previous message?
Unfortunately it is the GeShi syntax color parser installed in this forum that uses symbol # to make internal considerations when used inside CODE blocks. I cannot do anything to solve the problem so far, sorry.
marcuslee
09-09-2008, 04:17
Unfortunately it is the GeShi syntax color parser installed in this forum that uses symbol # to make internal considerations when used inside CODE blocks. I cannot do anything to solve the problem so far, sorry.
Internal Considerations? Is that sort of like comments?
Mark ???
ErosOlmi
09-09-2008, 04:21
I think it is used to mark the start of the color code to be used. So something like #RRGGBB
Michael Clease
09-09-2008, 08:57
Mark i didnt miss anything the forum trashed it.
Unfortunately it is the GeShi syntax color parser installed in this forum that uses symbol # to make internal considerations when used inside CODE blocks. I cannot do anything to solve the problem so far, sorry.
You could update the thinBasic GeSHi file (http://geshi.svn.sourceforge.net/viewvc/geshi/branches/RELEASE_1_0_X_STABLE/geshi-1.0.X/src/geshi/thinbasic.php?revision=1855&view=markup) & change this line from...
'COMMENT_SINGLE' => array(1 => "'"),
to...
'COMMENT_SINGLE' => array(1 => "'", 2 => '#'),
Then change this...
'COMMENTS' => array(
1 => 'color: #008000;'
),
to this...
'COMMENTS' => array(
1 => 'color: #008000;',
2 => 'color: #FF0000;'
),
Petr Schreiber
09-09-2008, 10:10
Hi Matthew,
thanks for the tip!
This sounds like the easiest solution.
Petr
ErosOlmi
09-09-2008, 11:05
Great matthew thanks a lot :D
Changes applied, job done!
marcuslee
09-09-2008, 15:23
Now, everything is all better. Isn't it amazing what a few changes will do?
Mark :o