Can someone please help? I am trying to convert turbo pascal to VB. In the code below, path0, path1, path2 are defined as BYTE, and path as array[0..50] byte. My question is what is the equivalent in VB of
Path1:=[] and path2:=[] ?
Also, how do you test for IF Path[z] IN Path2 THEN in VB?
Path0:=[];
FOR i:=1 TO Num DO
BEGIN
Path:=Pathmatrix[Order.Rv];
Path1:=[];Path2:=[];
FOR z:=1 TO Path[0] DO
Path1:=Path1+[Path[z]];
Path2:=Path1-Path0;
x:=0;
FOR z:=1 TO Path[0] DO
IF Path[z] IN Path2 THEN
BEGIN
x:=x+1;
Path[x]:=Path[z]
END;
Path[0]:=x;
Path0:=Path0+Path2;