Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CLIPWKS -Spreadsheet Library - <b>lprotect()</b> <b>miscwks.prg</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
lprotect()                                                         MISCWKS.PRG
------------------------------------------------------------------------------------------
 Purpose
   Set the global protection flag in the spreadsheet

 Syntax
   Lprotect( aSpreadsheet,cSetting | lSetting )

 Parameters
   aSpreadsheet - Array of spreadsheet parameters
   cSetting     - ON  | P  - Enable global protection
                  OFF | U  - Disable global protection
   lSetting     - TRUE - Enable  FALSE - disable

 Returns
   nStatus        - 0 = All Ok
                   -6 = Invalid parameters

 Notes
   Lprotect is used to enable or disable global protection.  When
   protection is enabled, protected cells may not be modified.

 Example
function ProtectDemo
    LOCAL aWks := Lcreate("SALES","L3")
    if !empty(aWks)
       LProtect(aWks,.T.)  // Enable global protection
       Lclose(aWks)
    endif
return nil
 Category
   Creating spreadsheet files

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