BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 05-27-2009, 05:26 PM   #1 (permalink)
New Member
Join Date: May 2009
Model: 5800
Carrier: Blackberry developer
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default I need help!!!!!!! array of BasicEditField

Please Login to Remove!

Hi everybody... i'm sorry if i ask this...

i'm developing an aplication on the Blackberry JDE and i don't know how to create an array of EditFields or BasicEditFields, i mean, i have to ask on this aplication some codes of diferent books, but i don't know how many books are.

For this reason i have to make an array of BasicEditField or EditFields.

I need this as early as possible. Thanks for any help
Old 05-27-2009, 10:14 PM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

Why do you need an array of edit fields? When you add an EditField to a Screen, the screen maintains a list of all of your EditFields (or any fields, for that matter).

If you want an array of any Java object, you can declare it like this:

Object[] foobar = new Object[5];

(or whatever the size).

If you do not know the size, and you want the array to be dynamic, then use the Vector class.
Old 06-15-2009, 04:29 AM   #3 (permalink)
Knows Where the Search Button Is
Join Date: Jul 2008
Location: India
Model: 9000
Carrier: AirTel
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts

BasicEditField _beField[5]={new BasicEdiField("",asd),.. up to 5}
Praveen K

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.