Yeah I tripped over that when I first began using Answer File/Folder. The 
result contains "Cancel" if the cancel button is clicked, and is empty if a 
file/folder is chosen. The it variable contains the absolute file/folder path 
if one is chosen or empty if the user cancels. It's somewhat counter to the 
Answer command unless you think about the it variable always containing the 
information requested. In a simple answer dialog, that would be the button 
clicked, but in answer file/folder it is the path to the file/folder. 

Bob S



> On Jan 3, 2018, at 08:46 , Klaus major-k via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi friends,
> 
> found it!
> 
>> Am 03.01.2018 um 17:33 schrieb Klaus major-k via use-livecode 
>> <use-livecode@lists.runrev.com>:
>> 
>> Hi friends,
>> 
>> I have a strange problem with "mobilepickphoto"!
>> 
>> Here the script:
>> on mouseUp pMouseButton
>> lock screen
>> if the environment = "mobile" then
>> mobilePickPhoto "library",212,212
>> ## if the result is empty then
> 
> ## This way! :-)
> if the result = "cancel"


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

Reply via email to