Log in

View Full Version : How do I accept strings into a function?


compunerd632
30th July 2002, 21:10
I am writing a function with the function whatever { } command. How do I make it accept a string i.e. call_function("text")? And then how do I use that in the function? I figured out how to use numbers, but I don't know about strings. Thanks.

dividee
30th July 2002, 22:39
There is nothing special to it:

function whatever(string txt)
{
anything(txt)
}

whatever("text")

compunerd632
31st July 2002, 02:04
ok, thanks dividee!