Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Output parameter.
Message
 
 
À
14/07/2001 21:54:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00530739
Message ID:
00530742
Vues:
11
>I am trying to get a value to be returned to the calling program. I can not get the return value. I have done this before, but I do not know what I am doing wrong?
>
>This is the calling program:
>lnFind = space(10)
>lnExec = SQLEXEC(lnConn,"Exec sp_seek_ssfno '128746586',?lnFind")
>
>
>This is the stored procedure:
>CREATE PROCEDURE sp_seek_ssfno
>
>@lcSSfno CHAR(10),
>@lnRet CHAR(10) output
>
> AS
>
>
>
>SELECT @lnRet = (select ssfno from tranhdr where RTRIM(LTRIM(ssfno)) = RTRIM(LTRIM(@lcSSfno)))
>
>What am I not doing.

Yo have to pass your variable by reference
lnExec = SQLEXEC(lnConn,[Exec sp_seek_ssfno '128746586',?@lnFind])
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform