07.05.2015 Views

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

Bronze Edition Guide - True BASIC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C. Built-in Functions 177<br />

MOD Function<br />

MOD(numeric-expression, numeric-expression)<br />

Returns x modulo y, provided y is not equal to zero.<br />

NCPOS Function<br />

NCPOS(string-expression, string-expression)<br />

NCPOS(string-expression, string-expression, rnumeric-expression)<br />

Returns the position of the first occurrence in the first argument of any character that is<br />

not in the second argument. If all characters in the first argument appear in the second<br />

argument, or the first argument is empty, then NCPOS returns 0. If the second argument<br />

is empty but not the first, then NCPOS returns 1.<br />

If a third argument is present, then the search for the first non-occurrence starts at the character<br />

position in the first string given by that number and proceeds to the right. If the second<br />

argument is empty but not the first, then NCPOS returns the starting position.<br />

The first form of NCPOS is equivalent to the second form with the third argument equal to<br />

one.<br />

NCPOSR Function<br />

NCPOSR(string-expression, string-expression)<br />

NCPOSR(string-expression, string-expression, rnumeric-expression)<br />

Returns the position of the last occurrence in the first argument of any character that is not<br />

in the second argument. If all characters in the first argument appear in the second argument,<br />

or if the first argument is empty, then NCPOSR returns 0. If the second argument is<br />

empty but not the first, then NCPOSR returns the length of the first string.<br />

If a third argument is present, then the search for the last non-occurrence starts at the character<br />

position in the first string given by that number and proceeds to the left (that is, backwards).<br />

If the second argument is empty but not the first, then NCPOSR returns the starting<br />

value.<br />

The first form of NCPOSR is equivalent to the second form with the third argument equal<br />

to the length of the first argument.<br />

NUL$ Array Constant<br />

NUL$ redim<br />

NUL$<br />

NUL$ is an array constant that yields a string array consisting entirely of empty strings.<br />

NUL$ can appear only in a MAT assignment statement.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!