Help for Valid
   Help for Validate

Properties	Events 	Methods

Registration Information

Order Form

Getting Custom Controls Written

Description

Validate makes data validation much easier.  This control allows you to collect all of the data validation code for a form into one event procedure.  This results in smaller and more maintainable code.

Validate only works with controls that have an hWnd property.

File Name

VALID16.OCX, VALID32.OCX

Object Type

Validate

Distribution Note     When you develop and distribute an application that uses Validate, you should install the control file into the users Windows SYSTEM directory.  Validate has version information built into it.  So, during installation, you should ensure that you are not overwriting a newer version of Validate.


Validate Properties

Properties that have special meaning for this control or that only apply to this control are marked with an asterisk (*).

Enabled Property

*Version Property


Validate Properties
Validate Events

Events that have special meaning for this control or that only apply to this control are marked with an asterisk (*).

Validate Event


Validate Properties
Validate Methods

Methods that have special meaning for this control or that only apply to this control are marked with an asterisk (*).

AddControl Method


AddControl Method

Description

Adds a control to the list of controls to validate.

Usage

[form.][control.]AddControl control

Remarks

Use this method to add a control to the list of controls that the Validate control will watch.  The Validate control will do nothing unless controls are added.  The Validate control will fire the Validate event when the watched control loses focus (such as when the user presses the Tab key or uses the mouse to switch controls).

Typically you should add edit boxes, list boxes, check boxes, etc. (i.e., add input controls).  Labels, picture boxes, etc. should not be added.

Only controls with an hWnd property should be added.


Validate Event

Description

Fires when focus is lost from one of the watched controls.

Syntax

Sub ctlname_Validate( ByVal CtrlValidate As Object, ByVal CtrlWantsFocus As Object, Action As Long )

Remarks

This event fires when one of the watched controls (see AddControl).  The control that currently has focus is specified by CtrlValidate.  This is the control you should do data validation on.

The control that is about to gain focus is specified by CtrlWantsFocus.  If this control is a command button, you may need to do some special processing in the button's Click event to prevent processing.

If you do not want focus to switch from CtrlValidate to CtrlWantsFocus then section Action to True.  This will force the focus to return to CtrlValidate.  Otherwise, focus will switch normally to CtrlWantsFocus.


Version Property

Description

Shows the version of the control.

Usage

[form.][control.]Version

Remarks

This property holds the current version of the control.  It is read-only and available at both design-time and run-time.

Data Type

String


Registration Information

Credits

Validate was written by ZaneThomas.  He can be reached at zthomas@activexpert.com.

Tech support, questions, comments, inquiries can be sent to 71231,2066 on CompuServe, or mabry@halcyon.com on Internet.  Our mailing address is:

Mabry Software, Inc.

Post Office Box 31926

Seattle, WA  98103-1926

Registration

You can register this program by sending $25 ($30 for international orders) and your address.  You can register Validate and its C source code by sending $60 ($65 for international orders).  With your order, you will receive a copy of our manual documenting all of our controls.

Add $5 per order for shipping and handling.

For your convenience, an order form has been provided that you can print out directly from this help file.

E-mail Discount

You may take a $5 discount for e-mail delivery of this package (CompuServe or Internet).  If you choose this option, please note: a printed manual is not included.  Be sure to include your full mailing address with your order.  Sometimes (on the Internet) the package cannot be e-mailed.  So, we are forced to send it through the normal mails.

CompuServe members may also take the $5 e-mail discount by registering this package in the software registration forum (GO SWREG).  Validate's SWREG ID number is 9526.  The source code version's ID number is 9527.

Credit Card Orders

We accept VISA and Mastercard.  If you e-mail your order to us, please be sure to include your card number, expiration date, complete mailing address, and your phone number (in case we have any questions about your order).

© Copyright 1996 by Mabry Software, Inc.


Order Form
 Validate Order Form

Use the Print Topic.. command from the File menu to print this order form.

Mail this	Mabry Software, Inc.

form to:	Post Office Box 31926

Seattle, WA  98103-1926

Phone: 206-634-1443

Fax: 206-632-0272

BBS: WinDev BBS 206-634-0783

CompuServe: 71231,2066

Internet: mabry@halcyon.com

Where did you get this copy of Validate?

____________________________________________________________________

Ship to:	____________________________________________________________________

____________________________________________________________________

____________________________________________________________________

____________________________________________________________________

____________________________________________________________________

Phone:	_________________________________________________________________

Fax:	_________________________________________________________________

E-Mail:	_________________________________________________________________

MC/VISA:	_________________________________________ exp. ___________________

qty ordered	____	REGISTRATION

$25 each ($30 international).  Check or money order in U.S. currency drawn on a U.S. bank.  Add $5.00 per order for shipping and handling.

qty ordered	____	SOURCE CODE AND REGISTRATION

$60 each ($65 international).  Check or money order in U.S. currency drawn on a U.S. bank.  Add $5.00 per order for shipping and handling.


Getting Custom Controls Written

If you or your organization would like to have custom controls written, you can contact me at the following:

James Shields

Mabry Software, Inc.

Post Office Box 31926

Seattle, WA  98103-1926

Phone: 206-634-1443

Fax: 206-632-0272

BBS: WinDev BBS 206-634-0783

CompuServe: 71231,2066

Internet: mabry@halcyon.com

You can also contact Zane Thomas.  He can be reached at:

Zane Thomas

Post Office Box 300

Indianola, WA  98342

CompuServe: 72060,3327