PtokaX forum

Development Section => Your Developing Problems => Topic started by: Guibs on 02 December, 2003, 21:19:42

Title: dostring / tostring,.....
Post by: Guibs on 02 December, 2003, 21:19:42
Hi there,,

So,.. a question, about those functions,...

If 'arg' is a string and 'arg2' a number, while using:
------
dostring(tostring(arg).."="..arg2)
------
It works like a charm,.... :)

But if 'arg2' is also a string, it doesn't seems to work properly,... :(

I would like:
For arg = "mysetting", & arg2 = "my value for my setting", then, it will give:
------
mysetting = "my value for my setting"
------
Any idea, about ? :)

Many thks in advance,,

l8tr,, ;)
Title:
Post by: Guibs on 02 December, 2003, 21:38:53
lol

I think i've just found it :))

Try:
----
arg2 = format("%q",arg2)
dostring(arg.."="..arg2)
----
Good scripts,, :o)

l8tr,, ;)