lotus domino - Convert Type "String" to type "Name" -


here problem:

    import lotus.domino.document;     import lotus.domino.name;     import lotus.domino.notesexception;     import lotus.domino.session;     import de.bcode.utils.utils;       public class example {      int x;      name n = (name)x.tostring(); // want this.       } 

i trying convert above , did "typecasting" , has been failing.

thank reading question :-)

the api documentation of ibm notes explains name object can obtained session. "to create new name object, use createname in session. " see this page

   session s = notesfactory.createsession();    name n = s.getusernameobject(); 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -