QT: How do I show the contents of listed TXT files?
William de Smet
williamdesmet at gmail.com
Wed Aug 20 08:19:41 CDT 2008
Hi there Klaus,
I was trying with:
put URL("file:" &it) into fld "contents2"
put the value of the clickline into fld "contents2"
But that gave no result or not the right contents.
I am still learning every day and i love the support of this list :-)
2008/8/20 Klaus Major <klaus at major-k.de>:
> Dag William,
>> Hi there,
>> I got a question which got me puzzled for a while now.
>> I want to list the .TXT files in the defaultfolder and that works OK
>> with the following script:
>> on mouseUp
>> set the defaultFolder to "foldername"
>> put the files into field "contents"
>> end mouseUp
>> Now I want to show the contents of the .TXT files in field
>> "contents2'" when I click on them.
>> And thats where I am stuck!
>> I can click on the listed TXT files but what do I need to do to show
>> the contents of the clicked TXT file in field "contents2"?
> put url("file:" & the selectedtext of fld "contents") into fld "contents2"
>> Thanks for your help!
> Graag gedan :-)
>> William de Smet
> Klaus Major
> klaus at major-k.de
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the use-livecode