03-29-2005, 08:54 PM
im trying my hand at building functions and im stuck on getting this one to return a string.
im trying to build a function that will give me the modify date of a file. i can get it to "out" the data correctly but it doesn't seem to pass the info to the macro that called it.
heres the macro
heres the function
any ideas where im going wrong?
Thanks...
im trying to build a function that will give me the modify date of a file. i can get it to "out" the data correctly but it doesn't seem to pass the info to the macro that called it.
heres the macro
heres the function
function$ $fn
SYSTEMTIME st
str a
lpstr s=GetFileInfo(fn 0 0 0 &st 0 0 1)
a.format("%u/%u/%u" st.wMonth st.wDay st.wYear)
any ideas where im going wrong?
Thanks...