View Single Post
02-01-12, 05:46 PM   #28
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Grimsin View Post
Okay i double checked the "or" business and yea you CAN NOT pass a non existent frame through the or statement the way you had suggested. It gives an error that says region unknown and stops. It will not just skip over.
I don't know what you're doing, but:

Code:
frame:SetPoint("BOTTOM", otherFrame or UIParent, "CENTER", 0, 100)
has always worked for me, and is actively used in several of my published addons.

If you're seeing an error, in order to tell you why, we need to see both your actual code, and the actual error.
  Reply With Quote