Utility Functions
The unit WEBLib.WebTools contains several helper functions that can be handy.
The list of available utility functions is:
Method with a VCL compatible signature playing a beep in the browser. Sends the string to the browser event log Returns the number of ticks since browser start in milliseconds Returns theURL query
parameter value for the URL
with which the web application was started.
Example:
https://www.myserver.com/mysite?user=Admin
with return ‘Admin’
for GetQueryParam(‘user’);
URL
with which the application was launched.
Gets the short date format according to the browser locale
Gets the long day name for a specific day in the week according to the browser locale
Gets the short day name for a specific day in the week according to the browser locale
Gets the long month name for a specific day in the week according to the browser locale
Gets the short month name for a specific month in the year according to the browser locale
Gets the decimal separator character according to the browser locale or the specified locale
Gets the thousand separator character according to the browser locale or the specified locale
Gets the currency according to the browser locale or the specified locale
Formats a value with a currency according to the browser locale or the specified locale
Retrieves the browser locale as string. See appendix for possible locale names.
Converts a string using accelerator keys (i.e. characters preceeded by &) as underlined HTML
text. The Accelerator var parameter is set to the accelerator key value.
Example:
will be converted to
Retrieves the image data as base64 encoded string
Sets a breakpoint in the code at the line where DebugBreak is called.