contents   index   previous   next



seConvert

 

syntax:

   void

SEContext.seConvert(SEObject obj,

                    SEMemberDesc mem,

                    int type); 

where:

obj the object half of an Object,Member pair

 

mem the member half of an Object,Member pair

 

type the type to convert to.

 

return:

None

 

description:

This routine retrieves the value using a get from the Object,Member pair, converts it, and puts it back to the same location. The possible conversions are:

 

SE.TOPRIMITIVE

 

Convert to a primitive value. A primitive value is a non-object value.

 

SE.TOBOOLEAN

 

Converts to a boolean

 

SE.TONUMBER

 

Converts to a number

 

SE.TOINTEGER

 

Converts to an integer.

 

SE.TOINT32

 

Converts to a signed 32-bit integer

 

SE.TOUINT32

 

Converts to an unsigned 32-bit integer

 

SE.TOUINT16

 

Converts to an unsigned 16-bit integer

 

SE.TOSTRING

 

Converts to a string

 

SE.TOOBJECT

 

Converts to an object.

 

see:

None

 


seSetAttribs