Announcement

Collapse
No announcement yet.

Problem it String constant in DDT

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

  • Problem it String constant in DDT

    Whould like to use $MYCLASSNAME in a Control add statement.

    This is also the case with declarations. (ext. DLL)
    With a string constants it would be easier to maintain.


  • #2
    You can... prefix the string equate with a NUL string in the CONTROL ADD statement:

    $BTN = "BUTTON"
    CONTROL ADD "" + $BTN, hDlg,...

    Unfortunately the same technique does not work for DECLARE statements however - they require an explicit string literal.

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Wow!, tried it;
      $CLASSNAME & ""

      That didn't work.
      Let's say: almost good..

      Thanks,


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

      Comment


      • #4
        > $CLASSNAME & ""
        > That didn't work.

        But did you try...

        "" & $CLASSNAME

        It works fine for me.

        -- Eric

        ------------------
        Perfect Sync: Perfect Sync Development Tools
        Email: mailto:[email protected][email protected]</A>

        "Not my circus, not my monkeys."

        Comment

        Working...
        X