Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
function building
#1
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
Code:
Copy      Help
str b
b=Get_File_Date("C:\qm\desktop\monday.mp3")

heres the function
Code:
Copy      Help
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...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)