====== MDIFRAME property ====== ==== Applies To ==== MDI windows. ==== Description ==== Returns the name of the MDI frame for an MDI child window, or null if the specified window is not an MDI frame or child. Use with [[get_property|Get_Property()]] only. ==== Usage ==== //mdiframe =// **Get_Property**(//windowID//, "**MDIFRAME**") ==== Example ==== Getting a Reference to an MDI Frame Suppose you write code for the [[click_event|Click event]] of a button and you need a reference to a window's MDI Frame, if it exists. The code below will get that reference. If the MDI frame does not exist, the variable Parent will return @window instead of the MDI frame reference. Parent = @window Frame = Get_Property(Parent, "MDIFRAME") if len(Frame) then Parent = Frame end