home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_2 / STR_PLUS / STRMAN.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-07-19  |  3.9 KB  |  139 lines

  1. VERSION 2.00
  2. Begin Form StrMan 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Manipulate Strings"
  6.    ClientHeight    =   3840
  7.    ClientLeft      =   1095
  8.    ClientTop       =   1485
  9.    ClientWidth     =   5175
  10.    ControlBox      =   0   'False
  11.    Height          =   4245
  12.    Left            =   1035
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3840
  17.    ScaleWidth      =   5175
  18.    Top             =   1140
  19.    Width           =   5295
  20.    Begin TextBox Text1 
  21.       Height          =   285
  22.       Left            =   240
  23.       MaxLength       =   64
  24.       TabIndex        =   0
  25.       Text            =   "Text1"
  26.       Top             =   1080
  27.       Width           =   4695
  28.    End
  29.    Begin CommandButton CmdOkay 
  30.       BackColor       =   &H00C0C0C0&
  31.       Cancel          =   -1  'True
  32.       Caption         =   "O &K A Y"
  33.       Height          =   375
  34.       Left            =   2640
  35.       TabIndex        =   4
  36.       Top             =   3240
  37.       Width           =   2295
  38.    End
  39.    Begin CommandButton CmdEncrypt 
  40.       BackColor       =   &H00C0C0C0&
  41.       Caption         =   "&Encrypt"
  42.       Height          =   375
  43.       Left            =   2640
  44.       TabIndex        =   3
  45.       Top             =   2760
  46.       Width           =   2295
  47.    End
  48.    Begin CommandButton CmdReverseString 
  49.       BackColor       =   &H00C0C0C0&
  50.       Caption         =   "&ReverseString"
  51.       Height          =   375
  52.       Left            =   240
  53.       TabIndex        =   2
  54.       Top             =   3240
  55.       Width           =   2295
  56.    End
  57.    Begin CommandButton CmdToName 
  58.       BackColor       =   &H00C0C0C0&
  59.       Caption         =   "&ToName"
  60.       Height          =   375
  61.       Left            =   240
  62.       TabIndex        =   1
  63.       Top             =   2760
  64.       Width           =   2295
  65.    End
  66.    Begin Label Label3 
  67.       Alignment       =   2  'Center
  68.       BackStyle       =   0  'Transparent
  69.       Caption         =   "Label3"
  70.       ForeColor       =   &H00008000&
  71.       Height          =   255
  72.       Left            =   240
  73.       TabIndex        =   6
  74.       Top             =   1800
  75.       Width           =   4695
  76.    End
  77.    Begin Label Label2 
  78.       BorderStyle     =   1  'Fixed Single
  79.       Caption         =   "Label2"
  80.       Height          =   255
  81.       Left            =   240
  82.       TabIndex        =   7
  83.       Top             =   2160
  84.       Width           =   4695
  85.    End
  86.    Begin Label Label1 
  87.       Alignment       =   2  'Center
  88.       BackStyle       =   0  'Transparent
  89.       Caption         =   "Label1"
  90.       ForeColor       =   &H00000080&
  91.       Height          =   735
  92.       Left            =   240
  93.       TabIndex        =   5
  94.       Top             =   240
  95.       Width           =   4695
  96.    End
  97. Sub CmdEncrypt_Click ()
  98.     test$ = Text1.Text
  99.     Encrypt test$, 5
  100.     label2.Caption = test$
  101. End Sub
  102. Sub CmdOkay_Click ()
  103.     Unload Me
  104. End Sub
  105. Sub CmdReverseString_Click ()
  106.     test$ = Text1.Text
  107.     ReverseString test$
  108.     label2.Caption = test$
  109. End Sub
  110. Sub CmdToName_Click ()
  111.     test$ = Text1.Text
  112.     ToName test$
  113.     label2.Caption = test$
  114. End Sub
  115. Sub Form_Load ()
  116.     FormCenterForm Me, DemoMain
  117.     nl$ = Chr$(13) + Chr$(10)
  118.     msg$ = "Enter a sample text string and then select" + nl$
  119.     msg$ = msg$ + "a command button to view the effect."
  120.     label1.Caption = msg$
  121.     label2.Caption = ""
  122.     msg$ = "The resultant effect:"
  123.     label3.Caption = msg$
  124.     Text1.Text = "Now is the time for all good men to"
  125.     Screen.MousePointer = 0
  126. End Sub
  127. Sub Form_Paint ()
  128.     DoForm3D Me, sunken, 1, 5
  129. End Sub
  130. Sub Text1_Change ()
  131.     If label2.Caption <> "" Then
  132.         label2.Caption = ""
  133.         End If
  134. End Sub
  135. Sub Text1_GotFocus ()
  136.     Text1.SelStart = 0
  137.     Text1.SelLength = Len(Text1.Text)
  138. End Sub
  139.