While i < n
array(i) = New System.Drawing.Point(points(i).X, points(i).Y)
res = (array(i).ToString)
Debug.Print("Res: " & res)
i += 1
End While
This is the code I have...
My output is-
Res: {X=1209,Y=67}
Res: {X=1224,Y=66}
Res: {X=1225,Y=82}
Res: {X=1209,Y=82}
Res: {X=40,Y=83}
Res: {X=41,Y=68}
Res: {X=56,Y=68}
Res: {X=54,Y=84}
Res: {X=40,Y=1054}
Res: {X=41,Y=1040}
Res: {X=56,Y=1040}
Res: {X=55,Y=1056}
Res: {X=1208,Y=1057}
Res: {X=1209,Y=1042}
Res: {X=1224,Y=1042}
Res: {X=1224,Y=1057}
But I want this like-
}{X=1209,Y=67}{X=1224,Y=66}{X=1225,Y=82}{X=1209,Y=82}{X=40,Y=83}{X=41,Y=68}{X=56,Y=68}{X=54,Y=84}{X=40,Y=1054}{X=41,Y=1040}{X=56,Y=1040}{X=55,Y=1056}{X=1208,Y=1057}{X=1209,Y=1042}{X=1224,Y=1042}{X=1224,Y=1057}{
in a single string variable. And that variable has to be assigned only once (The outputs actually came in four times. I meant the loop was triggered 4 times). I can't assign value more than once for this particular variable in a single event. Which means, no matter how many times the loop works for an event, I need all the outputs to be included in the string variable at once.
Now, can I get some help, please? :(
[NB: Number of Outputs can vary.]