CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2000
    Posts
    127

    Form String Sentence

    The variable bitmap are defined as string . How can i make use of line 1 to form the string sentence "save capture 1bitmap.wav " if i is 1?
    i = i + 1
    bitmap = CStr(i) + "bitmap" 'line 1




  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Form String Sentence

    Hope this help
    dim i as integer
    dim mystring as string
    mystring ="save capture "
    for i = 1 to YourNumberOfBmp
    mystring = mystring & i & "bitmap.wav"
    'do something with mystring,
    'next it will be
    'save capture 2bitmap.wav
    'and so on
    next i

    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Form String Sentence

    Hope I understood what you mean...I am not sure: why you choosed Api category?

    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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