Difference between revisions of "Charat"

From Mesham
Jump to navigationJump to search
m
Line 12: Line 12:
 
  var c:=charat(a,2);
 
  var c:=charat(a,2);
 
  var d:=charat("test",0);
 
  var d:=charat("test",0);
 +
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:String Functions]]
 
[[Category:String Functions]]

Revision as of 18:29, 13 January 2013

Overview

This charat(s,n) function will return the character at position n of the string s.

Example

#include <string>
var a:="hello";
var c:=charat(a,2);
var d:=charat("test",0);

Since: Version 0.41b