🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12552

Re: File Requesters

#12552
From: Peter da Silva
Date: Mon, 08 May 1989 03:02
17 lines
1167 bytes
In article <103440@sun.Eng.Sun.COM>, cmcmanis%pepper@Sun.COM (Chuck McManis) writes:
> This is a very simple operation. And to be effective should stay simple. 

> 	FileLock = Request("Prompt", DirLock, Access_mode);

Too complex. What if I want a file name? What if I want to open it later?
How about handling overwritten/nonexistent files?

	Status = Request(Title, DirectoryLock, Buffer)

Buffer should be initialised to the default file name, so you can provide
a hint. Also, it's sometimes useful to provide a pattern:

	Status = Request(Title, Pattern, DirectoryLock, Buffer);
-- 
Peter "Have you hugged your wolf today" da Silva      `-_-'
...texbell!sugar!peter, or peter@sugar.hackercorp.com  'U`
Technical Details
Message-ID: <3795@sugar.hackercorp.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!bellcore!texbell!sugar!peter
References: <6342@ardent.UUCP> <103440@sun.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!bellcore!texbell!sugar!peter
From: peter@sugar.hackercorp.com (Peter da Silva)
Newsgroups: comp.sys.amiga.tech
Subject: Re: File Requesters
Keywords: REENTRANT FILE REQUESTERS
Message-ID: <3795@sugar.hackercorp.com>
Date: 8 May 89 03:02:54 GMT
References: <6342@ardent.UUCP> <103440@sun.Eng.Sun.COM>
Distribution: na
Organization: Sugar Land Unix - Houston
Lines: 17