On 30/9/05 4:53 pm, "Flom, Todd" <[EMAIL PROTECTED]> wrote:
> I've got a unique scenario where I'm generating a list of files for the
> range of a property in the PDL. What I was wondering is there a way to
> configure the range to also be able to type in an entry as well -
> something obviously not in the list of files. I'm pretty sure I'm out of
> luck on this one, but it dosen't hurt to ask.
Hi Todd,
Did you really send this message on Friday 30 September?
One answer would be to use two properties in the getPDL handler. One could
be your current property, with a list of filenames as the range. To this
list you could add ":Use custom filename:", either at the start or the end.
Since neither platform will allow you to create a filename with the ":"
character, you are not likely to have a file with this name.
Your second property could have a #string format and no range list. The
author could enter a string here.
On beginSprite, you could do something like:
property fileNameFromList
property customFileName
on beginSprite(me)
if fileNameFromList = ":Use custom filename:" then
fileNameFromList = customFileName
end if
-- more code
end beginSprite
Would this work for you?
James
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]