Results 1 to 4 of 4

Thread: 4GL query

  1. #1
    Join Date
    Feb 2004
    Posts
    3

    Unanswered: 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

  2. #2
    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

  3. #3
    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

    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

  4. #4
    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.


    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •