How to define a record like another record
Posted in 1995
Hi all, This may be a dump question. I had a record in 4gl(Informix 4.1) which defined as: DEFINE a_record RECORD c1 int, c2..., cn char(10) END RECORD, and I would like be able to define a local variable which had the same struction as a_record: FUNCTION fun() DEFINE l_record LIKE a_record.*, -- something like this. .... -- I don,t want to redefine -- the some structure again. END FUNCTION Can I do that? How? Thanks for the advise in advance! Min ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Min Qiu Email: min@sura.net SURA, Inc. Phone: (301) 982-4600 ext 168 8400 Baltimore Boulevard Fax: (301) 982-4605 College Park, MD 20740 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~