?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. function main ()
  2.  
  3.  myobject = mappy.getValue (mappy.CUREDIT)
  4. -- myobjuser1 = mappy.getObjectValue (myobject, mappy.OBJUSER1)
  5. -- myobjflag1 = "Blank"
  6. -- The next line, flag 1 is 1 (as below), flag 2 is 2, flag 3 is 4, flag 4 is 8, then 16,32,64,128
  7. -- if mappy.andVal (mappy.getObjectValue (myobject, mappy.OBJFLAGS), 1) == 0 then
  8. --  myobjflag1 = "Not set"
  9. -- else
  10. --  myobjflag1 = "Set"
  11. -- end
  12.  
  13. -- Uncomment next line to see effect
  14. -- mappy.setValue (mappy.OBJECTLABELS, "Object "..myobject.." data:;"..myobjuser1..";U2;U3;U4;U5;U6;U7;"..myobjflag1..";F2;F3;F4;F5;F6;F7;F8;")
  15. end
  16.  
  17. test, errormsg = pcall( main )
  18. if not test then
  19.     mappy.msgBox("Error ...", errormsg, mappy.MMB_OK, mappy.MMB_ICONEXCLAMATION)
  20. end
  21.