This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP?! set up an iterator & put entries Collection into display List

 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have to set up an iterator and put entries Collection into display List for my midAction button I am not sure how to do this.. I know it involves "Iterator count" that's all I can get. Any suggestions?
here is my code so far:

Thanks
Rob
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this all you need?

[ August 14, 2003: Message edited by: Ernest Friedman-Hill ]
 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi -
thanks for the code
it is giving me an illegal start of expression
in the {string line = string it.next();}
and do I actually put in "String" and "line"?
Thanks
rob
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There was an automatically-inserted smiley in place of a semicolon followed by a close-paren in my original post; I edited my post so the smiley doesn't show up. The code should be exactly correct as shown. "line" is the name of the String variable I've chosen to hold each element of "entries" -- you're free to call it whatever you want.
Note that capitalization (it's spelled "String") matters, and every parenthesis, etc, is significant.
[ August 14, 2003: Message edited by: Ernest Friedman-Hill ]
 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahhh
Thank you again for your reply!!
I really appreciate it!
Rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic