[program-java] Re: Java: Resource Bundle

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: "'program-java@xxxxxxxxxxxxx'" <program-java@xxxxxxxxxxxxx>
  • Date: Thu, 7 Oct 2010 16:00:27 -0400

Hi:

I ended up creating a delimited value:

Pstar.captions.value=020, 023,024

I then read it into a var and split it. Not pretty but it worked.

Jim

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Steve Meacham
Sent: October 7, 2010 15:53
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: Java: Resource Bundle

Not directly.  You can iterate through all the name/value pairs in a bundle.  
Or, you could assign multiple values to a name with some sort of delimiter, and 
then parse the value into an array.


On Mon, Oct 4, 2010 at 2:03 PM, Corbett, James <James.Corbett@xxxxxxxxxxxxx> 
wrote:



        Hey now:

        Is it possible to create a string array in a resource bundle and then 
in my logic iterate through the array? I've been searching but haven't come 
across any thing worth while?

        Jim

        James M. Corbett

        Programmer / Analyst |
        Canada Revenue Agency | Agence du revenue du Canada
        875 Heron Rd.
        Ottawa, On.
        K1A0L5

        James.Corbett@xxxxxxxxxxxxx
        Telephone | Téléphone: (613) 941-1338
        Facsimile | Télécopieur: (613) 941-2261

        Government of Canada | Gouvernement du Canada






--


Steve Meacham

+1 (202) 455-8732
routes all calls and text messages to me


Other related posts: