Blitz (52/218)

From:Steve Hargreaves
Date:11 Aug 2001 at 16:13:57
Subject:AslPathRequest$

Hello all,

Just a quicky:-

When I call AslPathRequest$ for a second time in a program, the path buffer
doesn't seem to have been flushed, so the previous result is added.

eg

Maxlen aslpath$=192
maxlen a$=192

a$=AslPathRequest$("Choose a path",aslpath$)

----------
DH0: selected, result a$="DH0:"
----------

a$=""
a$=AslPathRequest$("Choose a path",aslpath$)

---------
DH1: selected, result a$="DH0:DH1"
---------

Even if I add aslpath$="", it doesn't help.

Is this a bug, and is there a fix, or am I doing something obviously wrong?

Obviously, I can't strip the previous result from a$, since this could destroy
an expanded path. eg, if DH0: is selected the first time, and DH0:prefs is
selected the secind time, there is a chance that the second path would be
reduced to "prefs", IYSWIM.

All the best

Steve.
========================================================
//Amiga 1200, '060/50, OS3.9, EZ-Tower, Dopus,
// PC Keyboard W EZ-Key, 56K modem, 2+32 Meg,
\\ // NEC 2A Multisync, Logic 3 SpeedMouse, HPDJ610C,
\\/ Sega Controller, & no hair.

=========================================================
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie