04-10-2008 11:50 PM
Hi Tomás,
The DevZone example is actually included in the VS6 examples shipped with Measurement Studio.
You may find the example in <C>:\Documents and Settings\All Users\Documents\National Instruments\MStudioVS6\VB\Samples\Instr\Simple Parsing
Using the example code with some very quick modifications, I was able to easily parse your "010004,120,HH" string.
The technique I followed was exactly as described in the DevZone article. Essentially, I created five tokens to handle each "segment" of the string (such as "010004" and ","). The commas were ignored while the remaining three segments were not. I have attached the example code to help you understand what I mean.
In regards to the type mismatch error, it may be simply that Response is returning as an empty array - perhaps the Tokens were not correctly set in the Properties.
04-12-2008 05:57 PM