Run Program in Progress and QAD ?

dangkyweb

New Member
I am a newbie,I use a sample file "xxtest.p" to test compile.And I compiled and ran it success in QAD 2009.But when I run direct in Progress Procedure,I have with a message error.I think Progress don't have some file *.i in this code.How to run it success ?Test and Message Error is following :

xxtest.p

{mfdtitle.i}

DEF VAR sonbr LIKE so_nbr.
DEF VAR sonbr2 LIKE so_nbr.
DEF VAR cust LIKE so_cust.
DEF VAR cust2 LIKE so_cust.

FORM sonbr COLON 15 sonbr2 COLON 45
cust COLON 15 cust2 COLON 45
WITH FRAME a WIDTH 80 SIDE-LABELS.

REPEAT :
IF cust2 = hi_char THEN cust2 = "".
IF sonbr2 = hi_char THEN sonbr2 = "".

UPDATE sonbr sonbr2 cust cust2 WITH FRAME a.

IF cust2 = "" THEN cust2 = hi_char.
IF sonbr2 = "" THEN sonbr2 = hi_char.

{mfselbpr.i "PRINTER" 132}
FOR EACH so_mstr NO-LOCK WHERE so_domain = GLOBAL_domain AND so_nbr >= sonbr AND so_nbr <= sonbr2 AND so_cust >= cust AND so_cust <= cust2 :
DISPLAY so_nbr so_cust so_ord_date.

END.
{mfreset.i}

END.

Message Error :


Loi1.gif
 

dangkyweb

New Member
How to Progress can understand file *.i ex. "mfdtitle.i" and database difinition ex."so_nbr" and "so_cust".
 

mosfin

Member
Progress looks for source files + include files (like mfdtitle.i)
1st in current working directory, then searches through all directories included
in the PROPATH variable.
to check what PROPATH contains, you can use command:
Code:
display propath view-as alert-box. /* in GUI client */
message PROPATH. /* in Character client */

the "mfdtitle.i" and other include files, are in a folder
(depends on your installation, )
for example, on my Linux server its in: /mfgapp/srvr/src
so i to add to my PROPATH, something like:
Code:
if 0=index(propath,"/mfgapp/srvr/src") then 
   propath = "/mfgapp/srvr/src," + propath.

regarding the table/field names, the progress recognises them from the connected DB scheme
 

rzr

Member
indicates syntax error / compile error. Check the include file, something's not correct in it.
 

Stefan

Well-Known Member
indicates syntax error / compile error. Check the include file, something's not correct in it.

Or:
  • you are not connected to the necessary databases;
  • you have not created the necessary aliases for the connected databases;
  • you are passing incorrect parameters to the include.
 

dangkyweb

New Member
Or:
  • you are not connected to the necessary databases;
  • you have not created the necessary aliases for the connected databases;
  • you are passing incorrect parameters to the include.

ya,I will try.Because QAD is use database admin and progress is not.I will test again.Thank all help every body.
 

rzr

Member
I have no exp.. on QAD and how they do stuff (programming) in there... but you can print a header either by
1. defining a HEADER on the FORM stmt or
2. PUT / EXPORT your values...
 
Top