STRV Function                                                                                                                          

Converts a integer value into a Pinstring

 

STRV(expression,length,mode)

 

Arguments

expression    Integer. Integer value to be converted

 

length          Integer. Length of the final string

 

mode           INPUT or OUTPUT. INPUT generates 'H' and 'L'. OUTPUT generates '1' and '0'.

 

Remarks

Used to generate strings that  can be applied to buses to set the direction and value of the pins

 

Example

Dim value as Integer

Dim Result as String

value = 85                                     // Hex value 0x55

Result = STRV(value, 8, OUTPUT)    // Result contains "01010101"