Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO Stored Procedure Compatibility
Message
From
04/07/2001 05:03:34
 
 
To
03/07/2001 07:15:04
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00526199
Message ID:
00526613
Views:
14
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..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform