ID:140312
 
Code:
winset(usr,"Title.charerror","text=Error: You must select a gender.")


Problem description:

Whenever i use this in my code, for some reason i get this

winset: Parameter charerror.you not found.
winset: Parameter charerror.select not found.
winset: Parameter charerror.gender. not found.

charerror is my label and Title is the window it's in

When ever this piece of code is ran, all it displays is "Error", not the rest of it

Help!
You have to url_encode() your parameters when you're using anything other than basic stuff like letters, numbers, or underscores. list2params() will also work for you.

winset(usr,"Title.charerror","text=[url_encode("Error: You must select a gender.")]")

// or

var/list/L = new
L["text"] = "Error: You must select a gender."
winset(usr,"Title.charerror",list2params(L))


Lummox JR
In response to Lummox JR
Couldn't you just throw some \" in there?
winset(usr,"Title.charerror","text=\"Error: You must select a gender.\"")
winset(usr,"Title.charerror","text='Error: You must select a gender.'")
? I think that's what you need.
In response to Redslash
Redslash wrote:
Couldn't you just throw some \" in there?
> winset(usr,"Title.charerror","text=\"Error: You must select a gender.\"")
>


This is how I always do it if all I want to do is change a single label, and it does work. I'm curious though which one would be more efficient. Seems like less proc calls would be a good thing, especially for frequently updated labels, right?
In response to Zagreus
Zagreus wrote:
Redslash wrote:
Couldn't you just throw some \" in there?
> > winset(usr,"Title.charerror","text=\"Error: You must select a gender.\"")
> >

This is how I always do it if all I want to do is change a single label, and it does work. I'm curious though which one would be more efficient. Seems like less proc calls would be a good thing, especially for frequently updated labels, right?


Oh yeah i forgot about adding the slashes, i remember that now, but im going to go with Lummox's use of url_encode,
Thanks