Heather,

Le 6 août 08 à 12:15, H Baric a écrit :

On opening a text file with the dialog, and displaying the contents in a field: is there a way to retrieve just the filename? (so I can put it in it's own field)

local tFilePath, tFileName
answer file "Choose a file:"
if it <> empty then
  put it into tFilePath
  put FilePathToShortFileName(tFilePath) into tFileName
  etc.
----------------------------
function FilePathToShortFileName pPath
  set the itemDelimiter to slash
  return item -1 of pPath
end FilePathToShortFileName

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/
----------------------------------------------------------------


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to