TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: SKIP GORE
date: 1997-09-18 19:44:00
subject: Why

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.