how to make $1 inside double quotes work / setting textbutton's text attribute
when setting textbutton’s text attribute, it reads only the first word after word ‘text’.
so sending it message like [she ate $1 blotters] would set it to "she" word only
when i change it to ["she ate $1 blotters"] (quotes added), then the $1 will not work and text on button is set to "she ate $1 blotters" instead of "she ate 3 blotters"
how to find a way around this?
i tried escaping the spaces, but message [she ate $1 blotters] is automatically changed to ["she ate $1 blotters"] by max.
then i tried having [she ate $1 blotters] message separately, and prepending/appending or joining or combining with [text "] and ["] messages, which gave me correct output when checked using a connection to [print] object, but when connected to textbutton, the text attribute was set to:
only. as if the " were still escaped.
anybody has some idea please? how would you set text attribute of textbutton to something containing variable?
----------begin_max5_patcher---------- 615.3ocyVt0aZCCEG+4jOEVV8wrHeKD7daeNllpR.WpqRrQwlN5p528Eam.T FkFRgn8.D7sy4u+kyEdMNBVp2JLPv2A+DDE8ZbTjeJ2DQciif0EaWTUX7aCV KLlhUBXRXM0lZopRX8KR5lbcivHT1BqTqtuQrvFb.IedJJAvPb2CT2Wfes2T 5M1dag6l8AsxZj+Q3mizdlNWTXW7nTs5PyOCkxwHDhk.nAWgY3zr1GyOvMAe XeYsHbLHb2Rxk9qnt7ougovCDfpn1ua3OZjEUP2BuEG69JYfXSI9cqY6soUr 0KZ3CM5ZyK0k5pSBT7UBMz4zTVOZXTGZxoo4DNmOKAPPWNdHWW7bTT0N9XD1 yFo8kiYvdXPIyBORmSxPH73BYv2TlbSu+L1WKcgekyV1TWJZtfTBxkeyY4tq L2WmHyWL574ARUanH.VVnVcRDjC24rlV.XEM2KTEkU9yitp3wkdTtwZ0pK.Q zyin8obOJ.EVA.AJqz11qgA9oTjLyWRGyCoQzyF+jD9334o3X1zwwOppi6Gf 6vioGGsCH7aTOtNyS7Vtc.KGM15UrIoCmUOA825vBN2S8LdZFeTs0nSTWstT r6v+SN1soJeGdBc9w3VvLOz5eDgMCryu+nvJo53+doWet4eO3L5MMK5cbe6T vdwsTXrRkOc6vMQe2ldTtboPcXghkRiq1gW9nS9Jbn5ostD.+YxgLYx4HWcF 7fmF8LjWW7+qdawmL3jO.1LcgNrAnlrISMzAnF1jolgjUM1ZNgRhEqW+baA+ NS5ERaWimzMtgyR7CkpvPuEgMhmk86OO1Ys2h+6Ds0oR -----------end_max5_patcher-----------
godbless ya! thanks