Exemplo VB.NET usando a classe


vbclass.vb
raw
Imports System

' This module houses the application's entry point.
Public Module modmain

	' Application's entry point.
	Sub Main()

		dim host as new pw3270.Session("")

		Console.WriteLine("Using pw3270 version " + host.getVersion() + " revision " + host.GetRevision())

		host.Connect("tn3270://zos.efglobe.com:telnet",10)

		if host.IsConnected() then

			Console.WriteLine("Connected to host")

			Console.WriteLine(host.GetStringAt(14,19,38))

			host.Disconnect()
			
		End If

	End Sub

End Module