GetPrimaryWebhareTransaction (open)

Returns the ID of the primary WebHare transaction


LOADLIB "mod::system/lib/database.whlib";

INTEGER FUNCTION GetPrimaryWebhareTransaction()

Return value


Transaction ID for the primary transaction, or 0 if no primary transaction was set up


In some contexts, such as a SHTML file parsed by the WebHare webserver, or a template used for conversion, a WebHare database transaction is opened by WebHare when calling the script. This function can be used to obtain the ID for that transaction