Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass variables to functions as arguments
#2
seeĀ https://www.quickmacros.com/help/QM_Help...PS.html#L2
for more information on how to pass and receive
example from qm help

Function Example
Code:
Copy      Help
lpstr s1="c:\md\t.txt"
str s2
int i
i=sub.fileext(s1 s2)
out "%i %s" i s2

#sub fileext
function lpstr'f str&e

int i=findcr(f '.')
if(i>=0) e.get(f i)
else e=""
ret i



Need more information to to advise further.


Messages In This Thread
RE: Pass variables to functions as arguments - by Kevin - 05-26-2021, 01:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)