RE: Colums with same name on a 4GL form
Posted in 2000
I have done this before using 'form only' fields. The basic gist of it is to name your fields something like formonly.table_field. Then inside the construct statement, search for the string table_field, and replace it with table.field. If that isn't as clear as mud, I can probably find some sample code to send you. HTH -----Original Message----- From: jons2000@my-deja.com [mailto:jons2000@my-deja.com] Sent: Monday, March 27, 2000 3:03 PM Posted To: informix Conversation: Colums with same name on a 4GL form Subject: Colums with same name on a 4GL form I want to use two columns from different tables but with the same column name on a 4GL form but am having problems. I have given the tags on the form the same name as in the tables ie f1 = orders.description f2 = customers.description I then have a global record with the following format DEFINE gr_custsum RECORD description LIKE orders.description c_description LIKE customers.description I want to do a constuct statement on these two fields. How do I do it? CONSTRUCT BY NAME q_item ON orders.description, customers.description does not allow me to tab to the second field in the form (I presume the field definitions on the form think I have only one field, description but the compiler won't let me re-name them anything else). however DISPLAY gr_custsum.description to orders.description gr_custsum.c_description to customers.description does display the information in the correct fields. Any help would be much appreciated Sent via Deja.com http://www.deja.com/ Before you buy.