ACS function int GetChar

Moderator: Graf Zahl

Locked
User avatar
Alex-bomber_Man
Posts: 56
Joined: Sat Aug 19, 2006 9:47
Location: Ukraine\Kharkov
Contact:

ACS function int GetChar

Post 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?
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Post 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";...
Dethernal
Posts: 31
Joined: Thu Jan 22, 2009 20:48

Post 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...
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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!
Locked

Return to “Closed Feature Suggestions”