Re: [ooc-compiler] Choosing sufficiently long array for out parameter
Brought to you by:
mva
|
From: Michael v. A. <mic...@gm...> - 2005-12-06 07:33:14
|
On 29/11/05, August Karlstrom <fus...@co...> wrote: > > Hi, > > The procedure GetText in Msg has the signature > > PROCEDURE (msg: Msg) GetText(VAR text: ARRAY OF CHAR) > > How do I make sure the message fits in `text'? Beforehand, you can't. What you can do is check if the result maxes out the array, and call again with a larger array if this is the case. Repeat until not maxed out. Not very elegant, I know :-) -- mva |