If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > 4GL query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-04, 03:01
aparnayp aparnayp is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
4GL query

Hi,

I have written the following code in "try1.4gl"

MAIN
OPEN WINDOW New at 1,1 with 23 ROWS, 131 columns ATTRIBUTE (BOLD)
OPEN FORM f_cus_gtp FROM "fs_gtp"
sleep 2
DISPLAY FORM f_cus_gtp ATTRIBUTE(BOLD)
END MAIN

Both the "fs_gtp.per" and "try1.4gl" compile without reporting any errors. When the executable file "a.out" is executed, it does not display any form.

Why is this so?

Thanks & Regards
Aparna
Reply With Quote
  #2 (permalink)  
Old 02-02-04, 03:30
vpshriyan vpshriyan is offline
Registered User
 
Join Date: Nov 2003
Location: Mumbai, India
Posts: 92
Hi Aparna,

The form been displayed and refreshed in instantaneous speed that you don't get a chance to see it. You need to shift the sleep line bit further, after DISPLAY Statement. OPEN Statement opens an object in the memory.

MAIN
OPEN WINDOW New at 2,2 with 23 ROWS, 131 columns ATTRIBUTE (BOLD)
OPEN FORM f_cus_gtp FROM "fs_gtp"
DISPLAY FORM f_cus_gtp ATTRIBUTE(BOLD)
sleep 2
END MAIN

BTW, OPEN & DISPLAY can be combined in to a single statement as:
OPEN WINDOW new AT 2,2 WITH FORM "fs_gtp"

Regards,
Shriyan
Reply With Quote
  #3 (permalink)  
Old 02-02-04, 05:14
aparnayp aparnayp is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
4GL query

Hi,

Even though the delay is increased (say to 200, 300 and so on), the form does not get displayed.

The below code is executed on HP 11. The same code works with HP 10.2.

Regards
Aparna

Quote:
Originally posted by vpshriyan
Hi Aparna,

The form been displayed and refreshed in instantaneous speed that you don't get a chance to see it. You need to shift the sleep line bit further, after DISPLAY Statement. OPEN Statement opens an object in the memory.

MAIN
OPEN WINDOW New at 2,2 with 23 ROWS, 131 columns ATTRIBUTE (BOLD)
OPEN FORM f_cus_gtp FROM "fs_gtp"
DISPLAY FORM f_cus_gtp ATTRIBUTE(BOLD)
sleep 2
END MAIN

BTW, OPEN & DISPLAY can be combined in to a single statement as:
OPEN WINDOW new AT 2,2 WITH FORM "fs_gtp"

Regards,
Shriyan
Reply With Quote
  #4 (permalink)  
Old 02-05-04, 01:58
aparnayp aparnayp is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Re: 4GL query

The solution is,

Set only the following environment variables.
INFORMIXC
INFORMIXSQLHOSTS
INFORMIXDIR
INFORMIXSERVER

If INFORMIXTERM is set, then the form does not get displayed.


Quote:
Originally posted by aparnayp
Hi,

I have written the following code in "try1.4gl"

MAIN
OPEN WINDOW New at 1,1 with 23 ROWS, 131 columns ATTRIBUTE (BOLD)
OPEN FORM f_cus_gtp FROM "fs_gtp"
sleep 2
DISPLAY FORM f_cus_gtp ATTRIBUTE(BOLD)
END MAIN

Both the "fs_gtp.per" and "try1.4gl" compile without reporting any errors. When the executable file "a.out" is executed, it does not display any form.

Why is this so?

Thanks & Regards
Aparna
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On