Hi all
Something strange here. Is this a progress bug or a limitation.
I am having problem using call to functions within a for statment. Using 10.2b at the moment.
Is this a bug in Progress ?
Something strange here. Is this a progress bug or a limitation.
I am having problem using call to functions within a for statment. Using 10.2b at the moment.
Is this a bug in Progress ?
Code:
function GetRecId returns recid (input cSpotype as char,
input dOrderdate as date):
/* function that returns recid */
end function.
procedure BufferCopyOnCreateNew:
/* This works */
def var r as recid no-undo.
r = GetRecId(oldSpotype,today).
for first SpotypeEvent no-lock
where recid(SpotypeEvent) = r:
/* do something */
end.
/* This don't work */
for first SpotypeEvent no-lock
where recid(SpotypeEvent) = GetRecId(oldSpotype,today):
/* do something */
end.
end procedure.