[Solved by incapaxian] Converting a "Key" of a Dictionary to String?
Asked by
6 years ago Edited 6 years ago
Since I'm tired, it's 4:40 AM and I can't seem to figure out a solution...
I bothered myself to beg the question, "How could I get a string from a key in a dictionary"
Here is my current code:
02 | local function searchTable(tab,nam) |
04 | for i,v in pairs (tab) do |
10 | if typeof(v) = = "function" then |
11 | table.insert(functions, "" ..i) |
12 | elseif typeof(v) = = "table" then |
1 | table.insert(functions, "" ..i) |
Trying to convert "i" to a string, which might equal "numbify" but "numbify" is a function, defined within the dictionary of "CVExtra."
print(i) is able to print out the name, but I don't know how to do the same.
I wonder if any one can provide the print() function code if no true solution can be made.