Supported datatypes

The PowerBuilder to .NET compiler converts PowerScript datatypes to .NET datatypes. Table 12-6 shows the datatype mapping between PowerScript and C#. Arrays are also supported for all standard datatypes.

Table 12-6: Datatype mapping between PowerScript and C#

PowerScript datatype

C# datatype

boolean

bool

blob

byte [ ]

byte

byte

int, uint

short, ushort

long, ulong

int, uint

longlong

long

decimal

decimal

real

float

double

double

string

string

user-defined structure

struct

user-defined nonvisual object

class

Date

DateTime

Time

DateTime

DateTime

DateTime