home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
demo
/
rec_lock
/
exmpl2_1.frm
< prev
next >
Wrap
Text File
|
1994-09-09
|
2KB
|
99 lines
VERSION 2.00
Begin Form frm_Example_2
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Record Locking Pro 1.01 Demo - Example 2"
ClientHeight = 2100
ClientLeft = 2175
ClientTop = 2490
ClientWidth = 5520
Height = 2505
Icon = EXMPL2_1.FRX:0000
KeyPreview = -1 'True
Left = 2115
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2100
ScaleWidth = 5520
Top = 2145
Width = 5640
Begin CommandButton cmd_Start_Demo
Caption = "Start Demo"
Default = -1 'True
Height = 375
Left = 840
TabIndex = 1
Top = 1320
Width = 1515
End
Begin CommandButton cmd_Exit
Cancel = -1 'True
Caption = "Ende"
Height = 375
Left = 3000
TabIndex = 2
Top = 1320
Width = 1515
End
Begin TextBox txt_User_Name
Height = 285
Left = 1920
MaxLength = 20
TabIndex = 0
Top = 420
Width = 2715
End
Begin Label lab_
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "Benutzername"
Height = 255
Index = 0
Left = 180
TabIndex = 3
Top = 480
Width = 1635
End
End
' Example 2 - Lock-by-Select Demo
Option Explicit
Const Lock_File_Name = "REC_LOCK.DAT"
Sub cmd_Exit_Click ()
If glb_User_Name <> "" Then Done_Locking
Unload Me
End
End Sub
Sub cmd_Start_Demo_Click ()
Dim User_Name As String
User_Name = txt_User_Name.Text
Init_Locking Lock_File_Name, User_Name, lock_by_Select
If glb_Last_Status = st_No_Error Then
Unload Me
frm_Cities.Show
Else
Show_Status
End If
End Sub
Sub Form_Load ()
ChDir App.Path
Center_Form Me
Draw_Form_Frame Me, 40, 40
End Sub