>From the semi colons (all hail the mighty semi colon!) I will guess
your using c# to do this.  If you want to "know" about your record not
being there, you'll have to use a try catch block to deal with the
exception that will be thrown when the file read occurs and no record
exists.


On 12/28/05, George Smith <[EMAIL PROTECTED]> wrote:
> The following code works if the item is on file but fails if item is not
> on file. Is this correct, shouldn't it just return an empty string ?
>
>
>
> If this behavior is the intended behavior then do we just wrap in a try
> catch block.
>
>
>
> Thanks for replies
>
> george
>
>
>
> // open customer file
>
> UniFile fl = us1.CreateUniFile("CUSTOMER");
>
>
>
> // read a record
>
> UniDynArray ar_record = fl.Read("2");
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
>


--
Don Kibbey
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to