Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote class behavior
Message
De
05/12/2005 19:18:55
Steven Dyke
Safran Seats USA
Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Remote class behavior
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01075164
Message ID:
01075164
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform