ID:159669
 
Is there a way to put apostrophes in a control's text field?
winset(src,"EquipmentWindow.EquipmentLabel","text='[M]'s Equipment'")

The ' cuts off the text input, and it ends up just saying their name.
ie: Falacy
instead of: Falacy's Equipment

I tried using a \, tried putting it in a variable and then using that instead, can't seem to get it to work.
A guess would be to try by enclosing the parameter value in double quotes (or even more single quotes), so those are used as the deliminators, and not the quotes you want to display.
var/txt = "\"Bob says, 'hi'\""
//or
var/txt = {""Bob says, 'hi'""}

winset(p,"control","text=[txt]")
In response to Kaioken (#1)
Yup, both ways seem to work, thanks.