Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>obj_edit()</b> c_exam06 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OBJ_EDIT()                                                          C_EXAM06
   Edits the attributes for selected objects.

   Syntax
         nCount = OBJ_EDIT(nIndex,nType [,nColor] [,nFill] [,nPattern]
                           [,cDesc] [,nMark] [,nMethod])

   Arguments
         nIndex      Object number. Pass HOT_INFO() for hot object.
         nType       Type of objects to edit.
                     0 = edit all objects in all layers.
                     1 = edit all marked objects.
                     2 = edit all objects in current layer.
                     3 = edit all objects in buffer.
                     4 = edit all combined objects.
                     5 = edit one of a set of combined objects.
         OPTIONAL PARAMETERS
         nColor      New color for the object.
         nFill       New fill type for the object.
         nPattern    New line pattern for the object.
         cDesc       New description for the object.
         nMark       Mark or unmark objects according to nType.
                        0-unmark
                        1-mark
         nMethod     New search method for object
                       -1  Do not find this object.
                        0  Find object on line.
                        1  Find inside of closed objects.

   Returns
         nCount      Number of objects edited.

   Description
         OBJ_EDIT() changes the attributes for all objects meeting the
         selection  criteria defined by nType. Specifying an .F. for any of
         the parameters will keep the original settings. You can edit an
         individual object (if nType is 5) by passing the object number in
         nIndex, or passing the number as HOT_INFO() which may have been found
         with a mouse. Otherwise, nIndex can be passed as a .F. for all other
         values of nType.

   Examples

         Changes color of hot object to color 4:

            OBJ_EDIT(1,4,.F.,.F.,.F.,.F.)  && Change all marked objs to color 4
            OBJ_EDIT(2,.F.,.F.,.F.,.F.,1)  && Mark all objs on current layer

See Also: OBJ_DELETE() OBJ_FIND()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson