Originally Posted by Phanx
No, but that would also fail, for the same reason. Re-read the OP's code. Once a global is set, it cannot be overwritten by creating a new UI object with the same name, so even through you pass "ABANDON_QUEST" as the global name in the CreateFrame call, the OP's code would see that there is already a global named "ABANDON_QUEST", and simply return that (a string) instead of actually creating a new frame. Either way, the global "ABANDON_QUEST" still points to the original string, and the frame variable is given that string as its value.
|
I mean ..
that the "above" code which I quoted from you (
local frame) actually works,
that the "below" code which I posted myself (
ABANDON_QUEST) doesn't work. not the other way round
I can't reread the OP's posts. It just isn't legible imo >.<