dbTalk Databases Forums  

filename and line number in 4GL

comp.databases.informix comp.databases.informix


Discuss filename and line number in 4GL in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Randall Young (ADE)
 
Posts: n/a

Default filename and line number in 4GL - 07-15-2011 , 09:06 AM






Would someone please help an old man remember if there is a way to access the line number and the filename.4gl filename for use in a 4GL program. I am thinking about something like __FILE__ and __LINE__ in the c language.. Thanks.

--
Randall Young
randall.young (AT) arkansas (DOT) go...nsas (DOT) gov>

"Blessed are we who can laugh at our surroundings for we shall never be considered completely sane."

Reply With Quote
  #2  
Old   
Mike Aubury
 
Posts: n/a

Default Re: filename and line number in 4GL - 07-15-2011 , 09:45 AM






Not that I remember ...


Although in Aubit4gl - it would be :

main
display curr_file_name," ", curr_line_no
end main


for example..



On 15 July 2011 15:06, Randall Young (ADE) <Randall.Young (AT) arkansas (DOT) gov>wrote:

Quote:
Would someone please help an old man remember if there is a way to access
the line number and the filename.4gl filename for use in a 4GL program. I
am thinking about something like __FILE__ and __LINE__ in the c
language. Thanks.****

** **

--****

Randall Young****

randall.young (AT) arkansas (DOT) gov****

** **

“Blessed are we who can laugh at our surroundings for we shall never be
considered completely sane.”****

** **

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #3  
Old   
Art Kagel
 
Posts: n/a

Default Re: filename and line number in 4GL - 07-15-2011 , 10:13 AM



Can't do it in traditional 4GL. In 3rd party 4GL clones, notably Querix
Lycia and Aubit4GL (don't know about 4Js) you can embed 'C' code and you
could use that facility, but IB that it's not supported in traditional
Informix 4GL.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
organization with which I am associated either explicitly, implicitly, or by
inference. Neither do those opinions reflect those of other individuals
affiliated with any entity with which I am affiliated nor those of the
entities themselves.



On Fri, Jul 15, 2011 at 10:06 AM, Randall Young (ADE) <
Randall.Young (AT) arkansas (DOT) gov> wrote:

Quote:
Would someone please help an old man remember if there is a way to access
the line number and the filename.4gl filename for use in a 4GL program. I
am thinking about something like __FILE__ and __LINE__ in the c
language. Thanks.****

** **

--****

Randall Young****

randall.young (AT) arkansas (DOT) gov****

** **

“Blessed are we who can laugh at our surroundings for we shall never be
considered completely sane.”****

** **

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #4  
Old   
Marco Greco
 
Posts: n/a

Default Re: filename and line number in 4GL - 07-15-2011 , 10:32 AM



On 15/07/11 15:06, Randall Young (ADE) wrote:
Quote:
Would someone please help an old man remember if there is a way to access the
line number and the filename.4gl filename for use in a 4GL program. I am
thinking about something like __FILE__ and __LINE__ in the c language. Thanks.

--

Randall Young

randall.young (AT) arkansas (DOT) gov <mailto:randall.young (AT) arkansas (DOT) gov

“Blessed are we who can laugh at our surroundings for we shall never be
considered completely sane.”
I have written a precompiler for 4gl called fglpp - you can easily hack it to
substitute __FILE__ and __LINE__ for you.
Find it in the IIUG software repository, or in my website, link below.

--
Ciao,
Marco
__________________________________________________ ____________________________
Marco Greco /UK /IBM Standard disclaimers apply!

Structured Query Scripting Language http://www.4glworks.com/sqsl.htm
4glworks http://www.4glworks.com
Informix on Linux http://www.4glworks.com/ifmxlinux.htm

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.