Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REQUEST simple ex. of Folder filenames to variables
#11
Gintaras, thank you

BUT

I look at your last post, as I have for the past hour and a half ... reading through the QM documentation ... can't find anything on 'Dir'
and I wonder, 'How would I have ever figured this out on my own? Wow! I know that --YOU KNOW-- that not everyone thinks the same! I truly do appreciate your help and I would gladly pay for it! Really! (I suppose that your site still says that you don't do this for a fee?) Anyway, this is wonderful.

Gintaras, this still leaves me one step short on my end. I don't know how to or can't figure out 'how-to' create a variable for each of the items that is presented in the:

out u.path
out u.name
out u.keyword

of your last post. The BIG QUESTION for me at the moment is:


How do I convert each item that is listed in the 'out result' to a variable that I can use? So that I have:

varForFilepath1 = C:\folder\filename1{cat}.txt
varForFilename1= filename1{cat}.txt
varForKeyword1 = cat
varForFilepath2 = C:\folder\filename2{dog}.txt
varForFilename2= filename2{dog}.txt
varForKeyword2= dog
varForFilepath3 = C:\folder\filename3{cow}.txt
varForFilepath3 = filename3{cow}.txt
varForKeyword3 = cow''

(Gintaras, I am able to create a variable for ONLY the last for each list. For instance:

str keywordx
keywordx=u.keyword

does assign the last keyword generated, 'cow', to 'keywordx')

BUT, as stated, I need to create a variable for every item that your previous code generates?

I can then use these variables to populate a Quick Macro's "List Box". For instance, the List-box would reveal:

Listbox list:

cat
dog
cow

And this choice of one of these would activate the rest of the macro, which has a few hundred lines and about 25 functions. (So my ultimate quest is to populate the 'listbox' with the 'keywords' generated from the folder. Do note, all files in this folder, that are limited to a maximum of 12, must comply with an assigned syntax that includes the "{keyword}" elements and no two files in the folder can have the same/identical 'keyword'.)

AND, you may be tired of hearing it, BUT I DO TRULY APPRECIATE OUR HELP!


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)