UOX3 Script Engine

API and Event handling

String Related Functions

SubStringSearch
Prototype
bool SubStringSearch( strToSearch, searchString );
PurposeReturns true if the string searchString is to be found inside strToSearch. Case insensitive search.
Example of Usage
var bFound = SubStringSearch( strSaid, "HELP" );

 

StringToNum
Prototype
int StringToNum( string toConvert );
PurposeConverts the string into a number (IE "1234" into 1234).
Example of Usage
var tempValue = StringToNum( textString );

 

NumToString
Prototype
string NumToString( int myVal );
PurposeConverts the number into a string (IE 1234 into "1234").
Example of Usage
var textString = NumToString( 5 );

 

NumToHexString
Prototype
string NumToHexString( int myVal );
PurposeConverts the string into a hexadecimal number (IE 400 into "0x190").
Example of Usage
var textString = NumToHexString( 5 );
©Copyright 2000-2001 WWW.UOX3.NET (Daniel Stratton/Matthew Randall)