Record like a record
Posted in 1995
te: Fri, 17 Feb 1995 11:02:51 -0500 }From: Min Qiu <min@sura.net> }X-Informix-List-Id: <list.5591> } }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! Try this DEFINE l_record, a_record record a_string char(80), a_number integer, a_date date end record || ======= **** **T* ======= ||John Regep || **** **** ||Store Systems Developement || **** *R** ||Kmart Corporation || =========== ********* =========== ||3100 West Big Beaver || ***A* **** ||Troy, MI 48084 || **** **** ||(810) 643-5078 ||=============== *M** **** ===============||uunet!kmart!jregep