PSI-CAD
Computer
- Feb 13, 2009
- 997
When trying to learn SNAP by my self with this simple Program (found in the SNAP Reference Manual) I have the following message for each line with 'Info Window'
'InfoWindow' is not declared. It may be inaccessible to its protection value.
What's wrong ? I thought this simple program worked
____________________________________________________________________
Imports Snap, Snap.Create
Partial Public Class MyProgram
Public Shared Sub Main()
Dim myString1 As String = "The sky is blue!"
Dim myString2 As String = "The air is fresh!"
Dim myStringArray As String() = {"Sunny", "Windy", "Rainy"}
InfoWindow.Write(myString1)
InfoWindow.WriteLine("")
InfoWindow.WriteLine(myString2)
InfoWindow.WriteLine(myStringArray, 10)
End Sub
End Class
_____________________________________________________________________
TIA
Regards
Didier Psaltopoulos
'InfoWindow' is not declared. It may be inaccessible to its protection value.
What's wrong ? I thought this simple program worked
____________________________________________________________________
Imports Snap, Snap.Create
Partial Public Class MyProgram
Public Shared Sub Main()
Dim myString1 As String = "The sky is blue!"
Dim myString2 As String = "The air is fresh!"
Dim myStringArray As String() = {"Sunny", "Windy", "Rainy"}
InfoWindow.Write(myString1)
InfoWindow.WriteLine("")
InfoWindow.WriteLine(myString2)
InfoWindow.WriteLine(myStringArray, 10)
End Sub
End Class
_____________________________________________________________________
TIA
Regards
Didier Psaltopoulos