Aller au contenu principal

SetCompany

Structure

SetCompany

Parameters

sNewCompany | String | the name of the new companyReturn Value

none

Description

This procedure can be used to change the company value for the drop down above the 'Choose Equipment' grid. This is the current company for the event - and filters many of the search by's along with equipment barcode values, etc.

Example

' Use 'Barcode Read' Trigger Action:

sBarcode = eBarcode.Text

if sBarcode <> '' then

if tdDoSQLRecords(1, 'SELECT COMPANY_NAME FROM COMPANY WHERE COMPANY_NAME = '' & sBarcode & ''') then

SetCompany(sBarcode)

eBarcodeText = ''

AbortAction('')

End If

End If

Application Compatibility

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

Also See

No related topics |