isPrimitive Method

Class: Object

Description

This method indicates whether the object is primitive.

Syntax

objectName.isPrimitive()

Parameters

None.

 

Returns

A Boolean:

 

1, if the object is primitive.

0, if the object is not primitive.

When Became Available

Profile v7.0

Example

type Number xyz = 3

if xyz.isPrimitive() w !,”Primitive!”

 

type RecordDEP dep = Class.new("RecordDEP")

if dep.isPrimitive() w !,”Primitive?”

 

type String str = "JN,Johnsons,32767"

type Row row = str.toRow("String INI,String NAM,Date DOB")

do row.setDelimiter(",")

 

if str.isPrimitive() w !,”Primitive!”

if row.isPrimitive() w !,”Primitive?”