mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Hi all

Is it possible to convert a char into a string or a string into a char.
something like IntToStr.

i now get the error: incompatyble types.

Greetz
aaron


Deridio fatum
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Let me remind you that you're in mIRC Scripts & Popups forum. If you're talking about a different programming language (and assuming that it has _something_ to do with mirc) you may want to post in Developer Forum.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Oops. my fault.

i'm so used to ask questions here about mirc scripting that in a reflex i asked this question about Delphi also in here.

sorry again

Greetz Aaron


Deridio fatum
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
My Delphi is pretty hazy, but as far as I know a char is assignment compatible with a string, so StringVar := CharVar should work directly. For string to char I assume the string is one character long, I believe something like PChar(StringVar)^ would work.

My Delphi skills were questionable at the best of times, and I haven't used the language for the better part of a year so it's possible everything I just said is utter crap.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard