home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 1845
- ClientLeft = 1725
- ClientTop = 1380
- ClientWidth = 4695
- Height = 2220
- Icon = EXPRAPP1.FRX:0000
- Left = 1680
- LinkTopic = "Form1"
- ScaleHeight = 1845
- ScaleWidth = 4695
- Top = 1050
- Width = 4785
- Begin CommandButton Command2
- Caption = "Test dll file"
- Height = 375
- Left = 2400
- TabIndex = 8
- Top = 1320
- Width = 1455
- End
- Begin Expr Expr1
- IsNumExpr = 0 'False
- Left = 3360
- NumValue = 0
- StrInput = ""
- StrLength = 0
- Top = 840
- End
- Begin CommandButton Command1
- Caption = "Call Expr.vbx"
- Height = 375
- Left = 240
- TabIndex = 2
- Top = 1320
- Width = 1455
- End
- Begin TextBox Text1
- Height = 285
- Left = 120
- TabIndex = 0
- Text = "aae=12, cat(string(a,2),ltrim(string(e,6),1))"
- Top = 150
- Width = 4455
- End
- Begin Label Label4
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 1800
- TabIndex = 7
- Top = 720
- Width = 615
- End
- Begin Label Label3
- Caption = "Is Numeric express?"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 720
- Width = 1935
- End
- Begin Label Label1
- Caption = "Value is:"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 480
- Width = 975
- End
- Begin Label Label2
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 375
- Left = 1560
- TabIndex = 4
- Top = 480
- Width = 1815
- End
- Begin Label Label6
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Left = 1800
- TabIndex = 3
- Top = 960
- Width = 795
- End
- Begin Label Label5
- Caption = "Length is:"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 390
- Left = 120
- TabIndex = 1
- Top = 960
- Width = 1050
- End
- Declare Function chkexpr Lib "expr.dll" (ByVal S As String) As Integer
- Declare Function expres Lib "expr.dll" (ByVal S As String) As Double
- Sub Command1_Click ()
- Expr1.StrInput = text1.Text
- Label6.Caption = Expr1.StrLength
- ' test vbx file
- Label2.Caption = Expr1.NumValue
- If Expr1.IsNumExpr Then Label4 = "True" Else Label4 = "False"
- End Sub
- Sub Command2_Click ()
- ' test dll file
- Label6.Caption = Len(text1)
- Label2.Caption = expres(text1)
- If Not chkexpr(text1) Then Label4 = "True" Else Label4 = "False"
- End Sub
- Sub Form_Unload (Cancel As Integer)
- Unload form2
- End Sub
-