CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Vectors

  1. #1
    Join Date
    Aug 2009
    Posts
    12

    Post Vectors

    I have created a Vector that contains an unknown number of instances of a list containing Strings and int. I want to create a loop and remove the Strings from the vector, putting each into a SQL query. But I dont have a clue on how to loop a Vector in this way.

  2. #2
    Join Date
    May 2009
    Location
    Lincs, UK
    Posts
    298

    Re: Vectors

    I guess the best way to do it is using the Vector.iterator() or Vector.listIterator() methods.

  3. #3
    Join Date
    Aug 2009
    Posts
    12

    Re: Vectors

    Oh thanks, I forgot all about this. Another question:

    <a href="Technabling?action=searchById&id=${client.clientId"}>

    I want to create a hypertext link but want a dynamic id, this seems intuitive but doesn't work. Any ideas?

  4. #4
    Join Date
    May 2009
    Location
    Lincs, UK
    Posts
    298

    Re: Vectors

    It seems you closed the quote before the curly bracket:
    <a href="Technabling?action=searchById&id=${client.clientId"}>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured