Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Dates to Packages.
Message
De
01/09/2004 11:32:45
 
 
À
Tous
Information générale
Forum:
Oracle
Catégorie:
Déclencheurs, séquences et procédures stockées
Titre:
Passing Dates to Packages.
Divers
Thread ID:
00938423
Message ID:
00938423
Vues:
66
Hi All,

I'd like to be able to pass a date to a Package. The following works:
lcSqlStatement = "{call GetShopHours.ReturnDaysWorked(" + TRANS(THISFORM.nEmpPersNo) + ", ?ldWorkWeek)}"

lnHandle = SQLEXEC(gnSatHandle, lcSqlStatement, 'Week_Hrs_Cursor')
How can I pass the date without the '?' in the statement? Neither of the following work.
"{call GetShopHours.ReturnDaysWorked(" + TRANS(lnEmpPersNo) + ", " + DTOC(ldWorkWeek) + ")}"
"{call GetShopHours.ReturnDaysWorked(" + TRANS(lnEmpPersNo) + ", TO_DATE('" + DTOC(ldWorkWeek) + "', 'MM/DD/YYYY'))}"
I could probably change the actual procedure to accept the date as a character. Is that my only recource?

TIA
Mike

P.S. VFP6 SP5 Oracle 8i
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform