Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote class behavior
Message
From
05/12/2005 19:18:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Remote class behavior
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01075164
Message ID:
01075164
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform