Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Rule Logic
Message
From
01/03/2005 09:46:10
 
 
To
01/03/2005 09:01:13
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00991524
Message ID:
00991546
Views:
16
I got this to work with the following code but would like some further thoughts and best practice ideas for how this could be better accomplished.
    ' Validate the CompanyLogoShape
    Public Function ValidateCompanyLogoShape(ByVal companyLogoShape As String) As String
        Dim message As String = Nothing

        Dim testResult As Boolean = companyLogoShape.Equals("Square")

        If companyLogoShape.Equals("Square") _
            OrElse companyLogoShape.Equals("RectangleLandscape") _
            OrElse companyLogoShape.Equals("RectanglePortrait") Then
        Else
            message = "Logo Shape must be Square, " _
            + "RectangleLandscape, or RectanglePortrait"
            Me.AddErrorProviderBrokenRule("CompanyLogoShape", message)
        End If
        Return message
    End Function
THANKS
Joe Salvatore, Programmer/Analyst - The Stellar Group
Previous
Reply
Map
View

Click here to load this message in the networking platform