From: Skip Gore
I am attempting to write a macro and have it partially completed. When
I attempt to compile, I get:
Error 185 (12,50) 'endif' keyword expected.
However, there seems to be no need for an endif statement where
indicated:
snip===============================================================snip
proc Main()
lFind("get [a-zA-Z0-9\d045\d095]#\.zip", "x")
Right(5)
PushPosition()
PlaceMark("z")
lFind(".zip", "i")
InsertText(" ")
GotoMark("z")
UnmarkBlock()
MarkWord()
If FileExists("d:\books\"+GetMarkedText()+".zip"))
Message("Book exists")
else
Dos("copy d:\"+GetMarkedText()+".zip e:\", _DONT_PROMPT_))
Dos("mpack -o "+GetMarkedText()+".txt
-s"+GetMarkedText()+".zip"+GetMarkedText()+".zip")))
endif
endif
end
snip===============================================================snip
Can anyone tell me why?
Thanks,
Skip
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|