Hello ,
The following program works in BP but prints blank in GPC. Can you tell us why.
program sts; type mytype = (a,b,c,d); myrec =record st:string; end; var arr : array[mytype] of myrec; begin arr[d].st :='anu'; writeln(arr[d].st); end.
Thanks and Regards, Anuradha
On 18 Mar 2002 at 13:05, Anuradha wrote:
Hello ,
The following program works in BP but prints blank in GPC. Can you tell us why.
program sts; type mytype = (a,b,c,d); myrec =record st:string; end; var arr : array[mytype] of myrec; begin arr[d].st :='anu'; writeln(arr[d].st); end.
It doesn't print blank here. It prints 'anu'.
FWIW, there may be a problem with your record. What is the size/capacity of the string 'st' ?
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~African_Chief email: African_Chief@bigfoot.com