Re: How to check if an array is null

2001-05-04 Thread Chris Butler
logic:present checks for null: whether the bean or bean property exists. it works fine with arrays. c At 03:08 PM 5/3/2001 -0400, Alex Colic wrote: Hi, I have a class which has a method 'Columns' which is a one dim array of Strings. How can I check to see if that method returns null. I want to

How to check if an array is null

2001-05-03 Thread Alex Colic
Hi, I have a class which has a method 'Columns' which is a one dim array of Strings. How can I check to see if that method returns null. I want to write out one message if it is null another if it is not. Thanks for the help. Regards Alex

Re: How to check if an array is null

2001-05-03 Thread Scott Walter
if(classinstance.Columns()==null) //do something else //do something NOTE: There is a difference between checking if an array is null and checking if the elements within the array are null. The above example checks the array itself. scott. --- Alex Colic [EMAIL PROTECTED] wrote: Hi, I