Page 1 of 1

ACS function int GetChar

Posted: Tue Aug 12, 2008 18:03
by Alex-bomber_Man
ACS function int GetChar (str String, int pos)
As is known, Strings in ACS is the index in the table of strings. Therefore obtain a separate character from it can not, and sometimes it is necessary. This feature will verify the existence of string, its length and return String[pos]. It's not hard?

Posted: Tue Aug 12, 2008 18:55
by Gez
Okay, I fail to see how this would be useful.

LetterE = GetChar("ABCDEFGHIJ", 5); seems to me to be a pointlessly complicated way to do LetterE = "E";...

Posted: Thu Jan 22, 2009 21:12
by Dethernal
In my project uses a library with many scrips, every in separate file. Work with string is very inconvenient for me. I need this function...

Posted: Thu Jan 22, 2009 21:18
by Graf Zahl
Gez wrote:Okay, I fail to see how this would be useful.

LetterE = GetChar("ABCDEFGHIJ", 5); seems to me to be a pointlessly complicated way to do LetterE = "E";...
Useless advice of the day!