2 questions for you gurus


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: 2 questions for you gurus

  1. #1
    kevin williams Guest

    2 questions for you gurus


    Ok guys try this one. Im writing a chat client. When a user joins a channel
    and they are the only user in the list I want them to get Operator status,
    do i do this using the
    getItemCount() in awt.list or another method?

    2nd Question. How can I add an integer to a string, such as a user count
    in init() . when a user logs in to the chat it +1 to an integer so I can
    display "total users" on a label. Thanks guys these are some brainscratchers
    for me.
    Kevin Williams
    kwilliams@webquestinc.com

  2. #2
    Paul Clapham Guest

    Re: 2 questions for you gurus

    1st Q: I don't know, depends on your design.

    2nd Q: You want to display "Total users: 42"? If totalUsers is the integer,
    then:

    String labelString = "Total users: " + totalUsers;

    kevin williams <kwilliams@webquestinc.com> wrote in message
    news:39903097$1@news.devx.com...
    >
    > Ok guys try this one. Im writing a chat client. When a user joins a

    channel
    > and they are the only user in the list I want them to get Operator status,
    > do i do this using the
    > getItemCount() in awt.list or another method?
    >
    > 2nd Question. How can I add an integer to a string, such as a user count
    > in init() . when a user logs in to the chat it +1 to an integer so I can
    > display "total users" on a label. Thanks guys these are some

    brainscratchers
    > for me.
    > Kevin Williams
    > kwilliams@webquestinc.com




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center