10-29-2009, 06:47 PM
Function Launch_Instructable
I have several rtf's I want to launch through this filter by using a Menu:
Menu
but it won't consider my string as a string:
Error in Instructable Menu3: expected str*
tip: use operator & to get address of variable, or operator + to cast type.
If I run the function from a macro, store the string to s, then pass s to the function its fine.
but I can't declare a variable in a menu as far as I know
and I don't understand how "HL:\2010..." is not a string
how do a run a function from a menu? (each selection is a path to send to the function)
thanks in advance
function str&s
s.expandpath
s-"''"; s+"''"
int w1
run "wordpad.exe" s "" "" 0x2800 win("WordPad" "WordPadClass") w1
MoveWindow w1 1424 691 256 300 1
ont w1I have several rtf's I want to launch through this filter by using a Menu:
Menu
Documents by Email :mac Launch_Instructable("H:\2010\Duties\Instructables\Documents by Email.rtf")but it won't consider my string as a string:
Error in Instructable Menu3: expected str*
tip: use operator & to get address of variable, or operator + to cast type.
If I run the function from a macro, store the string to s, then pass s to the function its fine.
but I can't declare a variable in a menu as far as I know
and I don't understand how "HL:\2010..." is not a string
how do a run a function from a menu? (each selection is a path to send to the function)
thanks in advance
