2.7 and Warning #11

basil99

Active Member
Licensed User
Longtime User
Hi!

I have the following piece of code to detect is device internet connected:

B4X:
Dim i As ServerSocket
If i.GetMyIp = "127.0.0.1" Then
      
  Msgbox( "You're not connected to Internet, sorry", "Network Error" )
      
End If

I got warning on Dim i As ServerSocket - Variable 'i' was not initialized. (warning #11)

Ignore it ?

Thanks
 
Top