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

Thread: to duplicate

  1. #1
    Join Date
    Nov 1999
    Posts
    15

    to duplicate

    i want to duplicate the "_" 5 times in text1.text
    so i write: text1.text = "_" * 5 but it doesnt work
    pls tell me how to do it


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: to duplicate

    How about :


    Text1.text = string$(5, "_")





    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

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