PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Next one V8 : component with result
Next one V8 : component with result
Débuté par Teun van Unen, 08 juin 2005 22:16 - Aucune réponse
Posté le 08 juin 2005 - 22:16
Hello,
I have changed that data-conversion PROCEDURE (see my previous message) in FUNCTION. So the last line is : RESULT V_WinDevDate to return the result (without END, Al!! that gives a compiler error).
I create a component of this project:
name component : FCMagicIntegerDate
name window : MagicIntegerDate
name FUNCTION : MagicIntegerDate
I integrated the component in another project and calls the component with an open statement :
AA90_InvoiceDate = OPEN (MagicIntegerDate,MagicInvoiceDate)
All looks well in the working of the component (I have inserted displays to see the result of the temporary fields), but when the component ends I get the message :
"Value shoud have been returned by Open function."
(Yes, THEY write 'shoud'!!)
It seems this is not the right way to get the result back?
I had already tried before using the procedure name:
"AA90_InvoiceDate = MagicIntegerDate (MagicInvoiceDate)"
but then I get a compiler error "MagicIntegerDate procedure is unknown".
Who can give me (a) hint(s)?
TIA, Teun.
Knowledge of WinDev grows but for me not fast enough .