Chartonum function – Multichannel Systems NeuroExplorer User Manual

Page 316

Advertising
background image

5.5.14.10. CharToNum Function

CharToNum Function


Converts a one-character string to a number (a character's ASCII code).

Syntax


double CharToNum(oneCharString)

Parameters

Parameter

Type

Description

oneCharString

string

A string of length 1 (for example, "a", "5").

Returns


The string character's ASCII code.

Comments


None

Usage

NexScript

x = CharToNum("1")

% x now equals to 49

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 314

Advertising