Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Determine whether each character of a string is present in another string.

 

Syntax

 

n = Verify([Start,] MainString, MatchString)

 

Returns

 

Number

Returns zero if each character in MainString is present in MatchString.

If not, it returns the position of the first non-matching character in MainString.

 

Parameters

 

Name

Type

Optional

Meaning

Start

Number

Yes

Optional starting position inside MainString to start checking from.

If Start evaluates to a position outside of the string on either side, or if Start is zero, VERIFY returns zero

MainString

String

No

String to test

MatchString

String

No

String containing allowed chars

 

Remarks

 

Restrictions

 

Verify is case sensitive

 

See also

 

String Handling,

 

Examples

 

'---Returns 4 since "." is not in "0123456789"

x = VERIFY("123.65,22.5""0123456789")

 

'---Returns 7 since 5 starts it past the first non-digit ("." at position 4)

x = VERIFY(5,"123.65,22.5""0123456789")

 

'---Returns 0 since all chars in MainString are present in MatchString

x = VERIFY("123.65,22.5"".,0123456789")

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software