Aller au contenu principal

LookupCurrentEventNum

Structure

LookupCurrentEventNum

Parameters

none

Return Value

Integer

Description

This function returns the current event number, as used while the event is onscreen. Note that this function should only be used on trigger actions that occur before the event is finished (before 'Event Finish' trigger action). Trigger actions later than 'Event Finish', like 'Event Finish - Equip. End', should use the LookupFinalEventNum 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 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 separate 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 |