I have an application which contains a custom class for retreving job number data from an AS400 data source.
I have another app which makes calls to this custom class which returns needed data. This app is multi user and the class is continually polled. Is it possible that one user could send parameters to the class to get particular data and at the same time send the data to another user that has made a request?
This is my call statement:
esglobal.dc1.getjobnumberdata(ThisForm.vjn, esglobal.as400_connection, @getJobDesc, @getJobCust)
This is my cutom class method:
lParam lookUpJobNumber, connectionHandle, getJobDesc, getJobCust
lookUpJobNumberString = "SELECT fdesc, jobno From momast Where ordno = '" + PadR(lookUpJobNumber,7) + "'"
If SQLEXEC(connectionHandle, lookUpJobNumberString, 'lookUpJobNumberQuery') <> -1 And reccount('lookUpJobNumberQuery') > 0 Then
getJobDesc = lookUpJobNumberQuery.fdesc
getJobCust = lookUpJobNumberQuery.jobno
Return .T.
Else
If AError(JobNumberError) > 0 Then
MessageBox(JobNumberError(2))
EndIf
Return .F.
EndIf