# StringGetCharacter Returns value of a symbol, located in the specified position of a string. ``` ushort  StringGetCharacter(    string  string_value,     // string    int     pos               // symbol position in the string    ); ``` Parameters string_value [in]  String. pos [in]  Position of a symbol in the string. Can be from 0 to [StringLen](/en/docs/strings/stringlen)(text) -1. Return Value Symbol code or 0 in case of an error. To get the [error code](/en/docs/constants/errorswarnings/errorcodes) call [GetLastError()](/en/docs/check/getlasterror). Example: ``` void OnStart()   { //--- delete all comments on the chart    Comment(""); //--- declare a string, from which we will obtain the values of symbol codes and remember the string length    string message = "The script demonstrates the operation of the StringGetCharacter() function";    int    length  = StringLen(message); //--- declare a string variable, to which we will add the obtained symbols from the demo string    string text    = ""; //--- in the loop by the demo string length    for(int i=0; i