![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: $capfirst()$ function |
Luridii |
![]() I've made this procedure as part of my new battle system 4 q3b2a to correct the way the user types in items 2 equip. define procedure <correct> I tested this by putting tEsT as the #correct# string. And back from it I got 'test' ? is there something wrong with the way I typed in the capfirst function? |
carlii |
![]() no. |
Luridii |
![]() I didn't think so... |
Alex |
![]() The whole point of a function is that it returns a value, and you've got nothing to take the value the lcase and capfirst functions are returning. Your code should look something like this: define procedure <correct> |
Luridii |
![]() Ooops, yes I forgot to put the set command in :o Thanks it all works fine now :) |
Wizard |
![]() Luridii, I just tested what you had. define procedure <correct> The result was: Test So your code is right. Maybe it is the version of ASL. I was using 285. Wizard |
Luridii |
![]() my initial code wasn't because i forgot the set string in front of the function! :o Yeah i'm using 285 |