Announcement

Collapse
No announcement yet.

4DGL combining string constants

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

  • 4DGL combining string constants

    Is it possible to combine multiple string macros into another single macro, for instance in c/c++ we can:

    #define FOO "foo"
    #define BAR "bar"

    #define FOOBAR FOO "-" BAR

    where they are concatinated to be (effectively):

    FOOBAR == "foo-bar"

    I've tried with all combinations of string literals ($"foo") and without, and there doesn't seem to be any documentation regarding this.

  • #2
    Sorry, the only real preprocessor type operations that are possible is on integers.
    Mark

    Comment

    Working...
    X