mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
known you some identifier who only to puts first capital letter at one string?
Only I know the identifier $upper and can achieving what I want, after some operations.
But, my question is one identifier to do it once.
For more I looked I could not find it.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try use 2 mirc identifiers for this:

1. $upper (/help $upper)
2. $mid (/help $mid)

e.g: //var %text = test $upper($mid(%text,1,1)) $+ $mid(%text,2-)
Result: Test


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Exactly what westor said. I personally use an alias for it.
Code:
alias capital return $upper($left($1,1)) $+ $mid($1,2-)
Paste this and then use $capital(string) to return String.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
Thanks westor and Nillen.

As I mentioned earlier, this result , I used to achieve after several operations.

What I wanted was a idenficador, only one.

The idea of Nillen I liked more, to create a custom identifier by an alias.

Thus always will use only $Capital(string)


Link Copied to Clipboard