This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
sample_code:file_picker [2014/12/05 22:42] stevegarman updated for v1.15 |
sample_code:file_picker [2015/03/27 04:03] (current) |
||
---|---|---|---|
Line 8: | Line 8: | ||
See also [[sample_code: | See also [[sample_code: | ||
===== The code ===== | ===== The code ===== | ||
- | < | + | < |
// | // | ||
Line 76: | Line 76: | ||
var lst = app.ListFolder(folderPath); | var lst = app.ListFolder(folderPath); | ||
lst.sort(function(x, | lst.sort(function(x, | ||
- | // | ||
- | // | ||
var ths = lst.shift(); | var ths = lst.shift(); | ||
self.lstFolds.SetList("" | self.lstFolds.SetList("" | ||
Line 111: | Line 109: | ||
tmp = tst.pop(); | tmp = tst.pop(); | ||
pth = (tst.join("/" | pth = (tst.join("/" | ||
+ | | ||
} | } | ||