TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: GEORGE DE BRUIN
date: 1997-05-31 01:59:00
subject: RE: EndProcess() and PickFile()

From: George De Bruin 
On Friday, May 30, 1997 5:59 AM, Jackson [SMTP:jackson@akros.it] wrote:
> What kind of process can EndProcess() terminate?
Any process started with Process() or any of the List() type commands.
> In the documentation is said Process(), List and lList(), but I've seen in
> various macros that it can be used with PickFile()
PickFile() is an lList() process, the only (major) difference is that the 
display has been set to display pickfile records.  Here's the rough 
equivalent 
code:
	CreateTempBuffer()
	BuildPickBuffer()
            DisplayMode(_DISPLAY_PICKFILE_)
	pick_ret = lList("Test PickList", Query(ScreenCols), 
Query(ScreenRows),_ENABLE_SEARCH_)
            DisplayMode(_DISPLAY_TEXT_)
> I don't understand how and if I can pass the parameter of EndProcess() to
> the calling process.
Whatever you pass to EndProcess() is returned by the Process() command.  IE:
Keydef fookeys
	EndProcess(-1)
end
proc main()
	integer foo = 0
	// do whatever here
	Enable(fookeys)
	foo = Process()
	warn("The following is the result from the endprocess: ", foo)
	// do whatever
end		
		
foo will be set equal to -1after the process.
> It seems I can only use zero and not zero to force ESC or ENTER.
I don't understand what you are trying to do here...  Can you give me an 
example?
> Why so many undocumented items?
We talk about Process() and keydefs in the documentation (page 70 of the 
macro 
guide), and provide macro source for examples of the doing other things with 
Process() and List().
                           George J. De Bruin
                       SemWare Technical Support
 
------------------------------------------------------------------------------
 SemWare Corporation         Phone: (770) 641-9002  FAX: (770) 640-6213
 WEB: http://www.semware.com  FTP: ftp.semware.com  
george.de.bruin@semware.com
 
------------------------------------------------------------------------------
---
---------------
* 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™.