Re: Need help with DISPLAY ARRAY problem
Posted in 1993
}Date: Wed, 22 Dec 93 7:25:48 PST }From: John O'Sullivan <johno@access.isc-br.com> }Subject: Need help with DISPLAY ARRAY problem }X-Informix-List-Id: <list.3255> } I need some help. I am new to Informix - so new I am using }Informix 4GL 1.10. I am learning this using the Users Guide but applying }it to my own application. I am having the following problem: } } OPEN FROM fba_stats FROM "fba_stats" OPEN FORM fba_stats FROM "fba_stats" } DISPLAY FORM fba_stats } } DISPLAY ARRAY p_player TO player.* } }The above syntax is right from the guide. Oh no it isn't. }But nothing displays in the form fields. The form displays but no info. }I have verified that there is valid data in all the record fields of }p_player. I did this by displaying all the values of p_player right }before the DISPLAY ARRAY statement. You didn't tell it how many initialised rows there are in the array, so it is assuming zero. CALL SET_COUNT(1) Or choose some other larger number. }Also, while debugging the C code of this prog, I noticed that after certain }statements, a variable "status" is checked. I am assuming this is the }return status value of the just executed Informix statement. First, is that }a true statement Correct. }and 2nd is there any way in a 4GL program to check the }status of an executed statement i.e. the DISPLAY ARRAY statement. RTFM: WHENEVER ERROR ... Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>