Friday, December 30, 2011

User Defined Data types in Lotus Script [Like Structure]

In lotus script, types is collection more than one data variables that can be manipulated as a single unit.

It is similar to structure in c and used to store database records within LotusScript.

These members are declared without Dim keyword.

Here i describing how to create type and use by the below example:

——————————————-

TYPE Data1

EmpID As number

EmpName As STRING

Doj As DateTime

END TYPE

——————————————–

Now the following declaration descrips how to use members of Data1 by (.) operator

Dim employee as Data1

emploee.EmpId=7615

employee.EmpName=”Ram”

employee.Doj=”08/11/2010″

No comments:

Post a Comment