Saltar al contenido principal

LookupFinalEventNum

Structure

LookupFinalEventNum

Parameters

none

Return Value

Integer

Description

This function returns the final event number, created uniquely per asset in the event as the event is completed. Note that this function should only be used on trigger actions that occur later than 'Event Finish' trigger action. All other earlier trigger actions should use the LookupCurrentEventNum instead.

To understand the difference: events in IndySoft can be performed on one or multiple assets. Say, for example, you are running an event that includes 10 assets. Rather than create 10 different events as soon as the event screen is drawn, IndySoft creates a single 'example' event behind-the-scenes and saves all information temporarily to the database against this number while the event is being input. Saving the information to the database allows IndySoft to easily perform add/edits on detail tables, and use sql commands to read values that have been saved to this temporary number. Then, when the event is completed, IndySoft loops through all the equipment in the 'Choose Equipment' grid, and creates new final events for all assets - so for all 10 assets in our example. The temporary event information is deleted from the database (although it is never keyed to individual equipment - so the clean up is only necessary to lower database size). When this operation occurs, the data from the temporary event number (LookupCurrentEventNum) is copied to all assets. Each asset creates a seperate event with its own event number. This final event number that is unique to each asset is returned from LookupFinalEventNum.

Example

No example provided

Application Compatibility

IndySoft Calibration Management, IndySoft Commercial Lab Management, IndySoft Tool Management

Also See

No related topics |