GDL
About building parametric objects with GDL.

Ampersand disappearing

Bruce
Expert
How do I stop the ampersand (&) symbol from disappearing in UI_TOOLTIP text? It appears fine in a UI_OUTFIELD, but not in UI_TOOLTIP.
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
13 REPLIES 13
Barry Kelly
Moderator
The outfield and the tooltip can be different.


But if you are using a variable instead of a quoted string, you will just need to create a second variable (can be hidden from users) that has the &&&, that will change as you change the original variable.
So as the user changes the original variable, the second will automatically change as well and will be used for the tooltip.

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Bruce
Expert
Yes, I had considered this. I was hoping to be more efficient with my code. Oh well.
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
runxel
Legend
You are still on AC22, Bruce?

In 24 everything seems working.
Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Bruce
Expert
Well that's interesting. I am scripting this part in 23. Just did a quick test in 24, and you're right! The ampersand works fine for tooltips.

Thanks for that!
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb