General information
Title:
Procedure parameter name with cursor field name
dear all,
i just wondering whether when declaring a parameter name for a procedure should not use any of the opened table / cursor field?
since using the code below it pop up a '0' value for the messagebox. but if i change the name to something else it will show '10' as expected.
CREATE CURSOR example (;
nperid i ;
)
SELECT example
? lookingdata(10)
PROCEDURE lookingdata(nperid AS INTEGER)
LOCAL x
MESSAGEBOX(nperid)
x = ALLTRIM(STR(nperid))
x = PADL(x,6,"0")
RETURN x
ENDPROC
regards,
Mark
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only