Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2007, 05:49 AM
Registered User
 
Join Date: Jul 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default Validation of an Expression

Hi all,

My problem is that i need to validate the positions of operators and operands in an Expression.

Please help.

 
Old October 25th, 2007, 02:31 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

It is a classic problem that programmers have to confront from time to time: teaching VB to “read.” In my experience, you just need to dig in and do it.

Write out the rules that the expression needs to conform to.
Assess the order of the tests that need to be passed for the most likely error, and for a situation where one failure obviates certain other tests.
Then convert those rules into step-by-step code.

Use InStr() to find occurrences and positions.

If you provide some specifics, more detailed steps might become apparent...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation expression sreevani ASP.NET 1.0 and 1.1 Basics 1 April 5th, 2007 11:22 AM
Password Validation with Regular Expression moghazali ASP.NET 1.0 and 1.1 Basics 0 January 7th, 2007 04:50 AM
validation expression keyvanjan ASP.NET 1.0 and 1.1 Basics 3 October 7th, 2006 11:17 AM
Regular Expression validation ranakdinesh ASP.NET 2.0 Professional 0 March 3rd, 2006 08:54 AM
Validation Expression ashokparchuri General .NET 2 May 6th, 2005 05:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.