Skip to content
MSN

input system

A TG007 community discussion started by SpAzZ.

Discussion 5 posts
Page 1 of 1
Open
Topic #1656 · 5 published posts · 624 views

I made an input system, and it capitalizes the first letter of the first word in your sentence, now I'm tryin to get it so that it capitalizes the word "I" where ever it is in the sentence, but im not sure how 2 do it, any ideas?

--SpAzZ--

$replace($1-,I,whatever here) Like that I suppose?

"Be more concerned with your character than your reputation

because your character is who you really are while your reputation is merely what others think of you."

 

DesolateMx 8.0

$replace($1-,i,$upper(i))

 

i guess thats correct

on me:*:join:#:hop #

the problem with the above codes given is that it makes all i's capital. What you want is $replace($1-, $+ $chr(32) $+ i $+ $chr(32) $+ ,I)

 

well something along those lines.

alias Caps_the_i {
 var %s,%t = $regsub($1,/^i\b|\bi\b|\bi$/g,I,%s)
 return %s
}

//echo -s $Caps_the_i(i am not nuts, am i)

--> I am not nuts, am I