From: Richard Blackburn
Kieninger,Karl @Silverplume wrote:
>
> I would like to be able to pause an error checking macro, allow the user to
> correct an error, and then restart the macro from that point.
>
> Any ideas?
Yes, you need to use the Process() command:
Process
Invokes another editor process.
Syntax: INTEGER Process()
Returns: The result of the EndProcess() that terminated the call to
Process(). If EndProcess() is not passed a parameter, the
result
is 0.
Notes: This command invokes the editor recursively. Control is not
returned to the macro that originally invoked Process()
until the
EndProcess() command is executed.
Examples:
/********************************************************
A simple browse only mode macro.
In this example, the editor is re-entered at the call to
Process(), and control is not returned to the Browse()
macro until EndProcess() is called - in this particular
case, by pressing
********************************************************/
keydef BrowseKeys()
Up()
Down()
EndProcess()
end
proc Browse()
if Enable(BrowseKeys, _EXCLUSIVE_)
Message("Press to exit browse mode")
Process()
Disable(BrowseKeys)
endif
end
See Also: EndProcess(), Enable(), Disable()
--
Richard Blackburn | 6040 Sand Wedge Circle | (w) 770-434-8492
NSS 22940RL | Kennesaw, GA 30144-2076 | (h) 770-427-1890
SCCI 38 | rblackburn@mindspring.com | (f) 770-434-8714
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|