- Messages
- 7
- Country

Hallo all,
What im trying to do is read an FSUIPC offset inside a loop,the airspeed for example and i want to read it untill is bigger than a value (lets say 200) and then something.im using the following code but it does not work...
Dim airSpeed As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H2BC)
Do
FSUIPCConnection.Process()
Dim airpeedKnots As Double = airSpeed.Value / 128D
If airpeedKnots.ToString() > 200 Then
TextBox2.Text = "overspeed:"
Exit Do
Else
'do nothing
End If
Loop
Any ideas why this crashes?
Kostas
What im trying to do is read an FSUIPC offset inside a loop,the airspeed for example and i want to read it untill is bigger than a value (lets say 200) and then something.im using the following code but it does not work...
Dim airSpeed As Offset(Of Integer) = New FSUIPC.Offset(Of Integer)(&H2BC)
Do
FSUIPCConnection.Process()
Dim airpeedKnots As Double = airSpeed.Value / 128D
If airpeedKnots.ToString() > 200 Then
TextBox2.Text = "overspeed:"
Exit Do
Else
'do nothing
End If
Loop
Any ideas why this crashes?
Kostas

