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
    Rep Power
    159

    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
    42
    Posts
    222
    Rep Power
    38

    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
    42
    Posts
    222
    Rep Power
    38

    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
    57
    Posts
    8,777
    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/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    Member marcuslee's Avatar
    Join Date
    Sep 2008
    Location
    Kansas, USA
    Age
    42
    Posts
    222
    Rep Power
    38

    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
    57
    Posts
    8,777
    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/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

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

    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: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

  9. #9
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    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 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  10. #10
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    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/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

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

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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