CREATE FUNCTION ReadValue ( @Key char(10) ) RETURNS decimal(16,3) AS BEGIN DECLARE @Value decimal(16,3); select @Value = field from table where key = @key; RETURN @Value; END GOI can get the value in sql server using the following expression:
print readValue('1234567890');No i want to use the returned value fom this function in VFP.
m.paramValue = "1234567890" m.hConn = GetSQLConnection() m.value2 = Sqlexec(m.hConn, "ReadValue(@Key = ?m.paramValue)") wait window m.value2Can anyone help me with this?