Please enable JavaScript to view this site.

A-Shell Development History

Navigation: Version 4.9/5.0, builds 850-998 > 971 - 03 Nov 06

STRTOK.SBR

Scroll Prev Top Next More

The op parameter now supports a +2 flag to cause it to recognize quoted arguments. For example, consider the following string:

"DSK0:A.B[111,222]",ARG1,ARG2

If the field delimiter is a comma, normally STRTOK would parse the arguments like this:

"DSK0:A.B[111

222]"

ARG1

ARG2

 

By adding +2 to the OP parameter, it will parse it like this:

DSK0:A.B[111,222]

ARG1

ARG2

 

Note that it removes the quotes.