{"identifier":60292,"topic":"Functions","name":"numToChar","text":"<code><pre>the numToChar of <i>posInteger<\/i>  \n<\/pre><\/code> Value returned: the character whose ASCII equivalent equals<code> <i>posInteger<\/i><\/code> <br>\n","related":{"32809":null,"52559":"charToNum","57200":"length","60426":"offset","90270":"String operators"},"examples":"the numToChar of 65\nnumToChar(65)\n\nput charToNum(numToChar(65)) = 65","demo":"<code><pre>on nameUpperCase\n  ask \"Please enter your name:\"\n  if it is empty then exit nameUpperCase\n  answer uppercase(it)\nend nameUpperCase\nfunction upperCase whatStr\n  repeat with charNum = 1 to the number of chars in whatStr\n    put charToNum(char charNum of whatStr) into thisChar\n    if thisChar \u2265 97 AND thisChar \u2264 122\n    then put <b>numToChar<\/b>(thisChar - 32) into char charNum of whatStr\n  end repeat\n  return whatStr\nend upperCase<\/pre><\/code>\n ","debug":{"9":["the numToChar of pos"]}}