Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Refreshing Terminal Control

Refreshing Terminal Control

Refreshing Terminal Control

I am trying to setup a function to use in my automation programs that checks to see if you are at the login screen and will reset the terminal object on my form without having to reload the form.  Am I missing somthing?

Here is my code:

Public Shared Function AtLogin(ByVal Terminal As Object)
        Dim varIsAtStartScreen As String
        With Terminal.Session.Screen
            'System will check to make sure you are at starting screen
            varIsAtStartScreen = .GetString(20, 2, 5)
            If varIsAtStartScreen = "Logon" Then
                'If you are at login screen returns value of "Logon" in varIsAtStartScreen
                Return varIsAtStartScreen
                Exit Function
                'If you are not at login screen it will reset the terminal control
            End If
        End With
        Return varIsAtStartScreen
    End Function

I am referencing this Reset methond....I found this on Attachmates website


Used with the Session object, Reset returns the display to its power-up operating state. Session.Reset is only valid for VT terminal sessions.
Used with the Waits collection, Reset temporarily clears the state of its wait-type objects.



Element    Description
Object    The Session object or Waits collection

© 1996 - 2004, Attachmate Corporation. All rights reserved.

RE: Refreshing Terminal Control

Just to confirm... You are using a VT session and not a 3270 or 5250?

RE: Refreshing Terminal Control

I am using the 3270 session.  I actually was able to get this working by using Terminal.Session.Screen.SendKeys("@C", 0) to get a clear screen the .PutString("QUIT", 1, 2)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close