Please enable JavaScript to view this site.

 

str = StrGetNthChar(sString,nNth)

 

This macro function returns the nNth character from sString.

 

The function StrGetNthChar will generate an error message, if nNth is greater than the length of sString.

 

Other than the above error message, which would not occur with StrCopy, the function StrGetNthChar is a special case of StrCopy, as shown by the identity below.

StrGetNthChar(sString,nNth) ≡ StrCopy(sString,nNth,1)

See also: StrSetNthChar.

 


Topic 178835, last updated on 18-Apr-2020