Hello everyone. I have this 3 values to read from my regex result.
I wanted to write the result by using loop. I tried to initialize the Intcount=0, but the loop will not stop and keep reading only first value.
If I remove the Intcount=0, It can write the result. but it come with the error.
Write Line: Object reference not set to an instance of an object.
please help.
You should initialise Intcount variable with 0 before For Each loop.
1 Like
@lakshman
I tried to initiliaze it. But it end up with same error.
Or I initialize it wrongly. Please advise.
Hi,
Probably, your condition of While should be the following.
count>1 AndAlso intcount<3
Can you try this?
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.