SUBST Function                                                                                                             

Returns the substring of a string

SUBST(source,start,length)

 

Arguments

source       String. The source string.

start          Integer. The index of the first character (starting at 0 for the first character).

length        Integer. The number of characters in the substring.

  

Remarks

All arguments must be specified. This function is useful for take each bit of a pinstring and applying it to a pin sequentially.

 

Example

Dim Data as String

Dim Result as String

Data = “ABCD”

Result = subst(Data,0,2)  // return the first two characters