9 Function Main() As Integer
10 Dim rc As Integer = Examples.GALIL_EXAMPLE_OK
11 Dim gclib As Gclib = New Gclib()
12 Dim args() As String = Environment.GetCommandLineArgs()
14 If args.Count() <> 2 Then
15 Console.WriteLine("Incorrect number of arguments provided")
16 Console.WriteLine("Usage: jog_example.exe <ADDRESS>")
18 Console.Write(vbCrLf + "Press any key to close the example.")
20 Return Examples.GALIL_EXAMPLE_ERROR
23 Dim address As String = args(1)
27 rc = Examples.Jog(gclib)
29 Examples.PrintError(gclib, ex)
30 rc = Examples.GALIL_EXAMPLE_ERROR
35 Console.Write(vbCrLf + "Press any key to close the example.")
int Main()
Main function for the commands example.