|
Mike Buess
USA
3037 Posts |
Posted - 05/27/2002 : 1:24:05 PM
|
What is the proper way to pass string and character arguments to an OriginC string function? For example,
int test(string str1="abcdef", char ch1='c') { return str1.Find( ch1 ); }
test()=; test()=2 //as expected, but
test(abcdef,c)=; test(ABCDEF,C)=6
This function returns the string length regardless of the arguments I use. What am I doing wrong?
Mike Buess Origin WebRing Member |
|