Apr-22-2019, 02:52 PM
(Apr-19-2019, 09:39 PM)Pedroski55 Wrote: I tried putting the functions in a list and also in a dictionary:
pyFiles = [makeHTMLCBs(), makeDropdownboxes(), makeHTMLtable(), makeHTML_RBs(), readLinesmakeTBs(), makeThankyouPHP()]pyFiles = {'0': makeHTMLCBs(), '1': makeDropdownboxes(), '2': makeHTMLtable(), '3': makeHTML_RBs(), '4': readLinesmakeTBs(), '5': makeThankyouPHP()}Either way, at runtime, Python immediately wants to execute the first function in the list or dictionary. I don't get a chance to choose say, myString = pyFiles[3]
Python documentation: How do I use strings to call functions/methods?
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.