Keysight VISA.NET Help
ReadWhileMatch Method



A string that contains the characters to be matched.
Read characters from the formatted I/O read buffer until a character not in characters is reached. The first non-matching character remains in the formatted I/O read buffer.

See Using Read Methods for detailed information.

Syntax
'Declaration
 
Function ReadWhileMatch( _
   ByVal characters As String _
) As String
'Usage
 
Dim instance As IMessageBasedFormattedIO
Dim characters As String
Dim value As String
 
value = instance.ReadWhileMatch(characters)
string ReadWhileMatch( 
   string characters
)
String^ ReadWhileMatch( 
   String^ characters
) 

Parameters

characters
A string that contains the characters to be matched.

Return Value

The string read from the buffer.
Remarks
The ReadWhileMatch(String characters) method exhibits the same behavior as Scanf("%[]”, out result), which returns result. There is no processing of ranges or other meta-characters associated with the “[]” flag in Scanf.
Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025