Announcement

Collapse
No announcement yet.

Suggestion for versions of PB/DOS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Suggestion for versions of PB/DOS

    Hi,

    I have changed from QuickBASIC to PowerBASIC yesterday and I'm missing a real nice feature:

    - string constants

    I use this e.g. to include version numbers with ease in my programs:
    CONST VERSION$ = "v0.00.06"

    Could be a good idea for the next release.

    ------------------
    Keep always smooth
    Keep always smooth

  • #2
    I'll be glad to add it to the feature requests. In the meantime,
    perhaps a variable would do?

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      Yes, like this:

      SHARED VERSION$

      VERSION$ = "v0.00.06"

      This should (?) work.

      ------------------
      Keep always smooth
      Keep always smooth

      Comment


      • #4
        Roland,

        I believe you will need to use
        GLOBAL Version$


        No.... nevermind... I have been using the windows compilers for
        so long now....

        SHARED Version$ will work just fine.

        PUBLIC is another one that might be useful if you are using external
        units or libraries.


        Thanks,

        ------------------
        Gary Stout
        [email protected]
        Thanks,
        Gary Stout
        gary at sce4u dot com

        Comment


        • #5
          Thanks

          ------------------
          Keep always smooth
          Keep always smooth

          Comment


          • #6
            Tom,

            These may already be on the list, but could you add
            GLOBAL Variables and $Variable to the list.

            Thanks,


            ------------------
            Gary Stout
            [email protected]
            Thanks,
            Gary Stout
            gary at sce4u dot com

            Comment


            • #7
              SHARED already produces global variables, yes? Or are you looking
              for some different functionality?

              Constants (or equates) are on the list.

              ------------------
              Tom Hanlin
              PowerBASIC Staff

              Comment


              • #8
                Originally posted by Tom Hanlin:
                SHARED already produces global variables, yes? Or are you looking
                for some different functionality?
                Just to bring the keyword GLOBAL=SHARED to the dos compiler so that
                when switching from the windows compilers back to the dos compiler,
                it would be easier to remember if they were the same. No big deal,
                just throwing out the suggestion. But you are right, SHARED does
                the same as GLOBAL.

                Thanks,





                ------------------
                Gary Stout
                [email protected]
                Thanks,
                Gary Stout
                gary at sce4u dot com

                Comment

                Working...
                X