Digits Method (String, Boolean)

HttpServer.dll

Check if a value is digits only

Namespace:  HttpServer.Helpers
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public string Digits(
	string name,
	bool required
)
Visual Basic (Declaration)
Public Function Digits ( _
	name As String, _
	required As Boolean _
) As String
Visual C++
public:
String^ Digits(
	String^ name, 
	bool required
)

Parameters

name
Type: System..::.String
Field name.
required
Type: System..::.Boolean
true if field is required (may not be empty)

Return Value

string if validated, otherwise string.Empty

See Also