Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO Stored Procedure Compatibility
Message
De
04/07/2001 05:03:34
 
 
À
03/07/2001 07:15:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00526199
Message ID:
00526613
Vues:
15
For others the final solution is a new class method taht looks like:

this way I don't need to worry about making parameters...
	**Execute a stored Proc maybe return parameters
	**Accepts a 1 D array with all parameters list in order. (Maybe returns Output Parameter..)
	**Example:
		** DIMENSION laParams[2]
		** laParams[1]='0000046'
		** laParams[2]=1
		** lOutPutValue=SP_EXEC("GetStatus",@laParams)
	PROCEDURE SP_EXEC(lcSpname,laParams)
	LOCAL xReturn
		
		WITH THIS.oCommand
			.ActiveConnection =  oConnection
			.commandtext = "GetStatus"
			.CommandType = ADCMDSTOREDPROC
			.parameters.refresh
			FOR i=1 to ALEN(laParams,1)
				.parameters(i).value=laParams[i]
			ENDFOR
			.Execute
			xReturn=IIF(TYPE(".parameters(0)")="O",.parameters(0).value,.F.)
		ENDWITH
		
		RETURN xReturn
	ENDPROC
Thanks for the lead John..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform