klyn.UInt.tryParse
method
public static tryParse( readonly value as String, out result as UInt ) as Boolean
Description

Parses text into a UInt without propagating invalid-value errors.

Parameters
ParameterDescription
valueNumeric text accepted by the UInt constructor.
resultReceives the parsed value on success; remains unchanged on failure.
Returns

true on success; false for malformed or out-of-range text.

Example
result = UInt()
assert UInt.tryParse("42", result)
assert result == UInt(42)
assert not UInt.tryParse("invalid", result)
assert result == UInt(42)