ActiveReports 9
ValidateName Method

A string value representing the name to validate.
A NameType enumeration indicating whether the name is for a control, dataset, dataregion or grouping object.
Checks report item names to ensure that they are unique and that they are not empty or null and do not contain invalid characters.
Syntax
'Declaration
 
Public Function ValidateName( _
   ByVal name As System.String, _
   ByVal nameType As NameType _
) As System.Boolean
public System.bool ValidateName( 
   System.string name,
   NameType nameType
)

Parameters

name
A string value representing the name to validate.
nameType
A NameType enumeration indicating whether the name is for a control, dataset, dataregion or grouping object.

Return Value

Returns true if the name is valid; otherwise false.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NameValidator Class
NameValidator Members

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum