TXDataTypeConverter.ValueToUrl Method
Converts a value to its URL literal.
Remarks
Raises EConvertToUrlError if the value cannot be converted.
Syntax
Unit: XData.Model.Classes
function TXDataTypeConverter.ValueToUrl(const Value: TValue; const PropName: string): string;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Value | TValue | The value to convert. An empty value is converted to null. |
| const | PropName | string | The name of the property or parameter, used only in error messages. |
Returns
The URL literal that represents the value.