🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18910

Re: Trouble with string arrays

#18910
From: Jacques Chaurette
Date: Sat, 04 Apr 1998 00:00
17 lines
1120 bytes
Thanks Regis, I got the string array to work.
Now for the next problem:
I want to use the string array item as input to a gridcontrol cell with the
command
gridcontrol.set(0,0, arrayItem);
whcih will set the arrayItem in cell 0,0 of the gridcontrol.

arrayItem must be an object, such as a string.
I have tried the following to convert sData[i] to a string object (sData[i]
is an element of a string array).
String arrayItem = new String(sData[i]);
or
String arrayItem = new String(sData[i]).toString();
neither of these works, they generate a null pointer exception.
Any ideas?
Jacques
Technical Details
Message-ID: <6g5lop$epq13@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6g1np8$bgt1@forums.borland.com> <3524D2D3.D0A1BDC6@dcs.hull.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,adedeeaeecd4c042
X-Google-Attributes: gidf74b3,public
From: "Jacques Chaurette" <jacobie@cam.org>
Subject: Re: Trouble with string arrays
Date: 1998/04/04
Message-ID: <6g5lop$epq13@forums.borland.com>
X-Deja-AN: 340840866
References: <6g1np8$bgt1@forums.borland.com> <3524D2D3.D0A1BDC6@dcs.hull.ac.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Fluide Design Inc.
Newsgroups: borland.public.jbuilder.java.language