VERSION 5.00
Begin VB.Form Information 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Information"
   ClientHeight    =   4575
   ClientLeft      =   1470
   ClientTop       =   1530
   ClientWidth     =   5760
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   4575
   ScaleWidth      =   5760
   ShowInTaskbar   =   0   'False
   Visible         =   0   'False
   Begin VB.CommandButton SSP_Quit 
      Default         =   -1  'True
      Height          =   612
      Left            =   4920
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   3780
      Width           =   612
   End
   Begin VB.CommandButton SSP_Read 
      Height          =   612
      Left            =   3840
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   3780
      Width           =   612
   End
   Begin VB.TextBox txt_Info 
      Height          =   3312
      Left            =   180
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   0
      Top             =   120
      Width           =   5412
   End
End
Attribute VB_Name = "Information"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim ms_Information() As String
Dim mi_CurrentInfo As Integer

Private Sub Get_Information()
Dim ls_Req As String
Dim ll_Statement As Long
Dim li_Status As Integer

On Error GoTo suite

ls_Req = "EXEC Information_User_Lst"
If SQLSubmit(gl_Environment, gl_Database, ll_Statement, ls_Req) Then
    li_Status = SQL_SUCCESS
Else
    li_Status = SQL_ERROR
End If
ReDim ms_Information(1, 0)
Do While li_Status = SQL_SUCCESS Or li_Status = SQL_SUCCESS_WITH_INFO
    li_Status = SQLFetch(ll_Statement)
    If li_Status = SQL_SUCCESS Or li_Status = SQL_SUCCESS_WITH_INFO Then
        ReDim Preserve ms_Information(1, UBound(ms_Information, 2) + 1)
        ms_Information(0, UBound(ms_Information, 2) - 1) = ODBCMemoGet(ll_Statement, 1)
        ms_Information(1, UBound(ms_Information, 2) - 1) = ODBCMemoGet(ll_Statement, 2)
    End If
Loop
li_Status = SQLFreeStatement(ll_Statement, SQL_DROP)
Exit Sub

suite:
li_Status = SQLFreeStatement(ll_Statement, SQL_DROP)
StdError
End Sub

Private Sub MessageRead()
Dim ls_Req As String
Dim ll_Statement As Long
Dim li_Status As Integer

On Error GoTo suite

ls_Req = "EXEC Information_User_Upd " & ms_Information(0, mi_CurrentInfo)
SQLSubmit gl_Environment, gl_Database, ll_Statement, ls_Req
li_Status = SQLFreeStatement(ll_Statement, SQL_DROP)
Exit Sub

suite:
li_Status = SQLFreeStatement(ll_Statement, SQL_DROP)
StdError
End Sub

Private Sub Form_Load()

MouseOff

If gl_CodePage <> 1252 And gl_CodePage <> 0 Then ChangeCharset Me

SSP_Read.Picture = LoadResPicture(RES_DELETE, 1)
SSP_Quit.Picture = LoadResPicture(RES_QUIT, 1)
Get_Information
mi_CurrentInfo = 0
txt_Info = ms_Information(1, mi_CurrentInfo)
MouseOn

End Sub

Private Sub ssp_quit_Click()
mi_CurrentInfo = mi_CurrentInfo + 1
If mi_CurrentInfo > UBound(ms_Information, 2) - 1 Then
    Unload Me
Else
    txt_Info = ms_Information(1, mi_CurrentInfo)
End If
End Sub

Private Sub SSP_Read_Click()
MessageRead
mi_CurrentInfo = mi_CurrentInfo + 1
If mi_CurrentInfo > UBound(ms_Information, 2) - 1 Then
    Unload Me
Else
    txt_Info = ms_Information(1, mi_CurrentInfo)
End If
End Sub

