Charnumber(char) { msgbox %char% ; There is a problem here. The message box is blank Transform, output, ASC, %char% output -= 96 Msgbox %output% } Charnumber(c) return f12:: ; testing purposes abc = h transform, number, asc, %abc% msgbox %number%
Stumped with making my first function / SOLVED
Started by
Stefan V
, Nov 27 2009 06:11 AM
3 replies to this topic
I just wanted to test making a simple function and I'm such an idiot xD
#1
-
Posted 27 November 2009 - 06:11 AM
c has no value there.
Charnumber("c")
letter=h
charnumber(letter)
#2
-
Posted 27 November 2009 - 06:43 AM
Function arguments are expressions.
So, the call to your function should be:
or
So, the call to your function should be:
Charnumber("c")
or
character = c Charnumber(character)
#3
-
Posted 27 November 2009 - 06:45 AM
Thanks for the help. That was a silly mistake ^.^
#4
-
Posted 28 November 2009 - 02:24 AM