Hey im new in here i got a prob with this code can someone help me to fixup the problem.
here is the code:
alias co {
var %coo = 11,1
var %coo1 = 15,1
var %coo2 = 10,1
var %i = 1
while (%i <= $gettok($1,0,32)) {
if $len($gettok($1,%i,32)) != 0) {
set %co1 $left($gettok($1,%i,32),1)
set %co2 $mid($gettok($1,%i,32),2,-1)
set %co3 $right($gettok($1,%i,32),1)
var %x = %x $+ %coo %co1 $+ %coo1 $+ %co2 $+ %coo2 $+ %co3
}
inc %i
}
return %x
}
thing is its when i type $co(h) i mean single character it comes twice like "hh" and there is another problem i when i use numeric character like $co(20$ only) it comes like "2$ only", cant even use $co(2morrow) or other numeric character in the front and at the end.Can someone fixup the problem for me i tried my self but cant fix it up. Someone please help me to fix it up thankS.