[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-user
Subject:    [Gambas-user] Drag'n'drop and url decode
From:       Ivan Tarozzi <itarozzi () gmail ! com>
Date:       2009-02-02 13:29:39
Message-ID: 1233581380.25900.5.camel () localhost
[Download RAW message or body]

Hi,
I'm using a Drop event in a ListView. When I d'n'd files from nautilus
to my gambas application, I can retrieve the file names using drag.Data
property.

Data is in the url format, several files are separated by \r\n

Is there a simple way to decode the names? Instead to use the right and
left functions to remove "file://" and "/r/n" substrings?

Is there a function to decode url to file name containing spaces?
(convert %20 to " "). I need to access the dropped files, so I need a
file name in standard string format.

Thanks!

Ivan


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic