How to get the file name path in an variable

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

How to get the file name path in an variable

Post by shalu »

Hi,

How to get the file name path in an variable. I am using the following command for selecting the File.

Code: Select all

answer files "Select the file" with type "*"
Thanks
Shalu S
--
Thanks
Shalu S
Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: How to get the file name path in an variable

Post by Dixie »

The following would put the full path of the file that you choose into the messagebox... Is this what you want to do ?

Code: Select all

on mouseUp
   answer file "Select the file" with type "*"
   put it
end mouseUp
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

Re: How to get the file name path in an variable

Post by shalu »

OK it's Working, Thanks for your quick response.
--
Thanks
Shalu S
Post Reply