Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Usage of the APP_SCRIPTVERSION

  1. #1
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Blog Entries
    1
    Rep Power
    153

    Usage of the APP_SCRIPTVERSION

    [code=thinbasic]
    ' 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
    [/code]
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  2. #2
    Member marcuslee's Avatar
    Join Date
    Sep 2008
    Location
    Kansas, USA
    Age
    36
    Posts
    222
    Blog Entries
    2
    Rep Power
    32

    Re: Usage of the APP_SCRIPTVERSION

    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:

    [code=thinbasic]
    ' 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

    [/code]

  3. #3
    Member marcuslee's Avatar
    Join Date
    Sep 2008
    Location
    Kansas, USA
    Age
    36
    Posts
    222
    Blog Entries
    2
    Rep Power
    32

    Re: Usage of the APP_SCRIPTVERSION

    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 ???

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    51
    Posts
    8,302
    Blog Entries
    2
    Rep Power
    10

    Re: Usage of the APP_SCRIPTVERSION

    Quote Originally Posted by marcuslee
    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.
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  5. #5
    Member marcuslee's Avatar
    Join Date
    Sep 2008
    Location
    Kansas, USA
    Age
    36
    Posts
    222
    Blog Entries
    2
    Rep Power
    32

    Re: Usage of the APP_SCRIPTVERSION

    Quote Originally Posted by Eros Olmi
    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 ???

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    51
    Posts
    8,302
    Blog Entries
    2
    Rep Power
    10

    Re: Usage of the APP_SCRIPTVERSION

    I think it is used to mark the start of the color code to be used. So something like #RRGGBB
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  7. #7
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Blog Entries
    1
    Rep Power
    153

    Re: Usage of the APP_SCRIPTVERSION

    Mark i didnt miss anything the forum trashed it.
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  8. #8

    Re: Usage of the APP_SCRIPTVERSION

    Quote Originally Posted by Eros Olmi

    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 & change this line from...

    [code=php]
    'COMMENT_SINGLE' => array(1 => "'"),
    [/code]

    to...

    [code=php]
    'COMMENT_SINGLE' => array(1 => "'", 2 => '#'),
    [/code]

    Then change this...

    [code=php]
    'COMMENTS' => array(
    1 => 'color: #008000;'
    ),
    [/code]

    to this...

    [code=php]
    'COMMENTS' => array(
    1 => 'color: #008000;',
    2 => 'color: #FF0000;'
    ),
    [/code]
    Operating System: Windows 10 Home 64-bit
    CPU: AMD C-70 APU 40nm Technology
    Memory: 4.00GB DDR3 @ 533MHz
    Graphics: 256MB ATI AMD Radeon HD 7290 Graphics

  9. #9
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,816
    Blog Entries
    3
    Rep Power
    695

    Re: Usage of the APP_SCRIPTVERSION

    Hi Matthew,

    thanks for the tip!
    This sounds like the easiest solution.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  10. #10
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    51
    Posts
    8,302
    Blog Entries
    2
    Rep Power
    10

    Re: Usage of the APP_SCRIPTVERSION

    Great matthew thanks a lot

    Changes applied, job done!

    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Page 1 of 2 12 LastLast

Similar Threads

  1. Typo APP_SCRIPTVERSION
    By Michael Clease in forum Fixed or cleared errors in help material
    Replies: 1
    Last Post: 06-11-2007, 16:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •