home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4609
/
strplus
/
strman.frm
< prev
next >
Wrap
Text File
|
1994-07-19
|
4KB
|
148 lines
VERSION 2.00
Begin Form StrMan
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Double
Caption = "Manipulate Strings"
ClientHeight = 3840
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 5175
ControlBox = 0 'False
Height = 4245
Left = 1035
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3840
ScaleWidth = 5175
Top = 1140
Width = 5295
Begin TextBox Text1
Height = 285
Left = 240
MaxLength = 64
TabIndex = 0
Text = "Text1"
Top = 1080
Width = 4695
End
Begin CommandButton CmdOkay
BackColor = &H00C0C0C0&
Cancel = -1 'True
Caption = "O &K A Y"
Height = 375
Left = 2640
TabIndex = 4
Top = 3240
Width = 2295
End
Begin CommandButton CmdEncrypt
BackColor = &H00C0C0C0&
Caption = "&Encrypt"
Height = 375
Left = 2640
TabIndex = 3
Top = 2760
Width = 2295
End
Begin CommandButton CmdReverseString
BackColor = &H00C0C0C0&
Caption = "&ReverseString"
Height = 375
Left = 240
TabIndex = 2
Top = 3240
Width = 2295
End
Begin CommandButton CmdToName
BackColor = &H00C0C0C0&
Caption = "&ToName"
Height = 375
Left = 240
TabIndex = 1
Top = 2760
Width = 2295
End
Begin Label Label3
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Label3"
ForeColor = &H00008000&
Height = 255
Left = 240
TabIndex = 6
Top = 1800
Width = 4695
End
Begin Label Label2
BorderStyle = 1 'Fixed Single
Caption = "Label2"
Height = 255
Left = 240
TabIndex = 7
Top = 2160
Width = 4695
End
Begin Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Label1"
ForeColor = &H00000080&
Height = 735
Left = 240
TabIndex = 5
Top = 240
Width = 4695
End
End
Sub CmdEncrypt_Click ()
test$ = Text1.Text
Encrypt test$, 5
label2.Caption = test$
End Sub
Sub CmdOkay_Click ()
Unload Me
End Sub
Sub CmdReverseString_Click ()
test$ = Text1.Text
ReverseString test$
label2.Caption = test$
End Sub
Sub CmdToName_Click ()
test$ = Text1.Text
ToName test$
label2.Caption = test$
End Sub
Sub Form_Load ()
FormCenterForm Me, DemoMain
nl$ = Chr$(13) + Chr$(10)
msg$ = "Enter a sample text string and then select" + nl$
msg$ = msg$ + "a command button to view the effect."
label1.Caption = msg$
label2.Caption = ""
msg$ = "The resultant effect:"
label3.Caption = msg$
Text1.Text = "Now is the time for all good men to"
Screen.MousePointer = 0
End Sub
Sub Form_Paint ()
DoForm3D Me, sunken, 1, 5
End Sub
Sub Text1_Change ()
If label2.Caption <> "" Then
label2.Caption = ""
End If
End Sub
Sub Text1_GotFocus ()
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub