VERSION 5.00
Begin VB.Form Lnk_typ 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Link Type Choice"
   ClientHeight    =   2040
   ClientLeft      =   1860
   ClientTop       =   3090
   ClientWidth     =   4035
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   2040
   ScaleWidth      =   4035
   Begin VB.CommandButton cmd_Quit 
      Height          =   615
      Left            =   3240
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1320
      Width           =   675
   End
   Begin VB.OptionButton Option2 
      Height          =   495
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   3855
   End
   Begin VB.OptionButton Option1 
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3855
   End
End
Attribute VB_Name = "Lnk_typ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
MouseOff

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

cmd_Quit.Picture = LoadResPicture(RES_QUIT, 1)
Caption = gut_Param.Str1
Option1.Caption = "Product"
Option1.value = False
Option2.Caption = "Criteria"
Option2.value = False
MouseOn
End Sub

Private Sub Option1_Click()
    gs_ParamReqIns = "EXEC Test_Link_Products_ins1"
    
    lIdx = mDb.Find(lData, "Field_Name", "grItemDoc")
    lLabels = Split(mDb.GetFieldsAt(lData, lIdx, "Local_Text"), CH_LDELIMIT)
    ReDim lColumns(6)
    lColumns(0) = "MD_code" & CH_LDELIMIT & "0" & CH_LDELIMIT & "1" & CH_LDELIMIT & "MD_code" & CH_LDELIMIT & lLabels(0)
    Item_sel.show 1
    Unload Me
End Sub

Private Sub Option2_Click()
    gs_Action = "add"
    gs_ParamReqCsts = "EXEC Screen_Csts 'mtnc_lk_prod '"

    frm_mtnc_cwpr.show 1
    Unload Me
End Sub


Private Sub cmd_Quit_Click()

MouseOff
Unload Me

End Sub


