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>objs_save()</b> c_demo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
OBJS_SAVE()                                                         C_DEMO
   Saves objects to a DOS file.

   Syntax
         OBJS_SAVE(cFileName [,nLayer] [,nMarkFlag])

   Arguments
         cFileName   Sets a valid DOS name of file to save, optionally
                     including drive and pathname.
         OPTIONAL PARAMETERS
         nLayer      Save this layer to a layer-specific file with a -998
                     as the first byte of the file. You can save the buffer
                     layer 0, also.
         nMarkFlag   Sets whether to save only marked objects. 0-no, 1-yes.

Returns
         None

   Description
         OBJS_SAVE() saves all objects to a binary DOS file for later
         restoring by OBJS_READ(). Color and grouping attributes are saved. An
         object's marked status is not saved, therefore, marked objects will
         be restored as unmarked.

         nLayer sets which layer to save. If nLayer is not specified, all
         layers will be saved, and the first byte of the file will be -999.

         nMarkFlag sets whether to save only marked objects. If nMarkFlag is
         not specified, all objects will be saved. If nMarkFlag is 1, only
         marked objects will be saved.

   Examples

         Save current drawing to a file:

         OBJS_SAVE("CADFILE.CAD")      && Save objects to DOS file

See Also: OBJS_MAP() OBJS_READ()

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