From: Leath@cs.upei.ca (Steve Leath) Subject: Re: RE:ABF programming Date: 1995/11/22 Message-ID: X-Original-Message-ID: #1/1 X-Deja-AN: 119928430 references: organization: University of Prince Edward Island newsgroups: comp.databases.ingres In article Steven Clements writes: >From: Steven Clements >Subject: RE:ABF programming >Date: 10 Nov 1995 14:20:27 -0500 >16/September/1995 09:20am >>> >In article <43c8om$oao@midgard.calvacom.fr>, >cxp10@calvanet.calvacom.fr says... >> >>How can I get the current row number in a table >field to get back on >>when I leave the frame ? 3GL (embedded quel/sql) seems to have the upper hand on this problem. Below is a 3GL fortran function (called as a procedure in 4GL) that returns the current record number in the tablefield dataset. integer*4 function get_table_rec_num !** Can be called from either EQUEL or ABF !** Programmer STEVE LEATH !** University of Prince Edward Island !** July 25, 1986 ## declare forms ## character * 40 form_name,table_field ## integer * 4 record_num !** get form and table_field constants ## inquire_frs form (form_name=name) ## inquire_frs field form_name (table_field=name) !** get record number ## getrow form_name table_field (record_num=_record) get_table_rec_num = record_num end Hope this helps. Steve Steve Leath TEL: (902) 566-0413 Computer Services FAX: (902) 566-0958 University of Prince Edward Island Email: LEATH@UPEI.CA 550 University Ave. Charlottetown PEI C1A 4P3 Canada