Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

define a variable and assign it a value. 1

Status
Not open for further replies.

NitzGuy

Programmer
Jun 9, 2003
28
CA
Hi,
I was just wondering if there is a way to define a variable and assign it a value at the same time outside of a function (just below the GLOBALS "glbs.all").
For example

DEFINE variable1 INTEGER
LET variable1 = 0

Thanks
Jason
 
Jason:

No, unfortunately Informix 4GL is too brain dead for that. Your definition of variable1 when assigned a value must be assigned in the main or some other function.

If you didn't know, in Informix Rapid Development system, RDS, variable is automatically assigned to 0 where in the compiled 4GL it's undefined.

Regards,

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top