View Single Post
02-01-12, 08:37 PM   #30
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I've done the or assignment in the past, too, which is why I said "if, for some reason, this is not working for you then..." Yes, on a frame that doesn't exist. The only way it would move to UIParent (in Phanx's example) is if otherFrame was nil.

We can only help you with an error if we see what the error actually was and the code that triggered it.


/edit: you said that the error mentioned that it wasn't a table. Frames are just special tables. A nil value would have given you a nil error. As I mentioned above, you must be assigning something else to that variable name that isn't a table/frame.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote