Announcement

Collapse
No announcement yet.

Variable INCLUDE call

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

  • Variable INCLUDE call

    Using PB 3.5 for Dos, Win XP

    $INCLUDE "C:\Junk\HelpMe.Sub"
    Above works just fine.

    However, I would like the following:
    $INCLUDE "?:\Junk\HelpMe.Sub"
    $INCLUDE ? & ":\Junk\HelpMe.Sub"

    '?' should be determined by PB at the time 'exe' file is generated.

    Thanks again for great advice, Jack

    PS: Let this forum never die.

    ------------------

  • #2
    Using only the provided IDE, can't be done.

    Closest you can get is conditional compilation using $IF .. $ENDIF

    Code:
    %A     =   0 | 1 
    $IF %A
      $INCLUDE "A"
    $ELSE
      $INCLUDE "B"
    $ENDIF
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment

    Working...
    X