Data
Entry Validation
Data Entry Validation is a COM based component that allows you to validate
your data entry and restrict it to a predefined type(Numeric-Alphabetic-Alphanumeric-Decimal) Data Entry Validate will Format data by defining decimal places for numeric
entry , or define letter case for characters entry
DEVC
OCX V1.1
- Our control Data
Entry Validation For your data entry control
- Install Program Package
- Start Visual Basic
6
- Start New
Project
- Add any control
you can enter data to
- Save your
project
- Go To Project
Menu and click Components
- Click Browser
Button to select DEVC OCX from the windows
system if dose not appear And click
OK
- The OCX Icon
will appear at the Toolbar
- Add the control
by a double click on the icon at the toolbar
- Change form
property keypreview to true
- Add this code to
the form event keyPress
- Private Sub
Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 22 Then
KeyAscii = 0: Exit Sub
KeyAscii
= DEVC1.DataEntryValidation(KeyAscii, ActiveControl.Tag,_ ActiveControl.Text)
End Sub
- Add one of these
texts to your data control that you want to validate in the property tag
- N_M to enter positive number or
negative with out decimal
- NUM to enter positive number only with
out decimal
- AMT to enter positive number only
with decimal
- A_T to enter positive number or
negative with decimal
- CHR to enter character only without
number
- LCHR to enter lower case character only
without number
- UCHR to enter upper case character only
without number
- CBO to disabled entry any data
- You must add it
in every form you want to convert numbers if you have several forms in your
project
- Run your project
- As you see the
ocx is invisible
- In the control
you have 3 property and 1 function
- Serial number
property is unchangeable it generate automatically
- User name
property you will add your company
name and your name
- Activation
number property: you will have the number when we send it to you
- DataEntryValidation
function with 3 parameters
- KeyAscii off
the control to validate
- ActiveControl.Tag
- ActiveControl.Text
- Run your Program
- The ocx validate
your data
- Activation code
is for machine
- The file you
will download is a trial activex and will fire msgbox every 1 minute to
activate the control
- if you want to activate just order the activex
control
This product was added to our catalog on Wednesday 07 February, 2007.