Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Rule Logic
Message
De
01/03/2005 09:46:10
 
 
À
01/03/2005 09:01:13
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00991524
Message ID:
00991546
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform