Sub Globals
'Declare the global variables here.
Public dblnorth1,dbleast1,dblndiff,dblediff,dblbearing,dblbearingdms
Public dblnorth2,dbleast2
Dim firstpt,secondpt
Dim coord(4) '[color=red]array for variable 'coord'[/color]
radian=cPI/180
radianreverse=180/cPI
End Sub
Sub startinverse8(strbearing)
FileClose(c)
FileOpen(c, main.strfilename,cRead)
pintcntr = StrIndexOf(strBearing, "*",0) [color=red]strbearing=1*2[/color]
firstpt = SubString(strBearing, 0, pintcntr)
secondpt = SubString(strBearing, pintcntr+1,StrLength(strbearing)-pintcntr)
lineoftext=""
Do Until lineoftext = EOF
lineoftext=FileRead(c) '[color=red] reads each line consecutively[/color]
coord()=StrSplit(lineoftext,",")
If coord(0)= secondpt Then '[color=red] first character in the line of text [/color]
dblnorth2=coord(1)
dbleast2=coord(2)
Exit '[color=red] exit the loop when coord(0)=2 (second pt)[/color]
End If
Loop
-
-
-