Find quick help here to get you started with Hollywood
peceha
Posts: 111 Joined: Tue Dec 13, 2016 8:39 am
Location: Poland
Post
by peceha » Mon Jul 31, 2017 10:18 am
Hello
I just noticed that field TITLE of @DISPLAY can only take string.
If you try to give it any variable or something like:
the program throws an error.
Is it intended behavior?
SamuraiCrow
Posts: 475 Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA
Post
by SamuraiCrow » Mon Jul 31, 2017 1:03 pm
Yes. Preprocessor macros must be defined before the program starts running. if you need to define a name, use a constant definition or define a constant from the command line using an external build script.
I'm on registered MorphOS using FlowStudio.
Tipsi
Posts: 21 Joined: Sun Feb 14, 2010 6:06 pm
Location: Switzerland
Post
by Tipsi » Mon Jul 31, 2017 1:52 pm
You can change the title at runtime with the function
SetTitle() .
Code: Select all
var=12
SetTitle(var)
----------------------------
var=564
SetTitle("Result="..var)
Griessli
Tipsi
peceha
Posts: 111 Joined: Tue Dec 13, 2016 8:39 am
Location: Poland
Post
by peceha » Mon Jul 31, 2017 5:48 pm
Thanks.