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

    several questions

    Hi.

    I would like to know how can I do something this:

    ask the user for something (like a string)

    reverse that string

    input: 12345 abc

    the program would show: cba 54321

    --

    how can I use VB to do something like:

    put an html link in a form, and let the user click on it. when the user would click it, the program would run a browser, and
    goto the page linked.. (p.e. www.net.net or something..))

    thanks in advance..


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: several questions

    vb 6 has a strreverse function to reverse a string.


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: several questions

    to create a hyperlink on a label:
    - place a Label on your form
    - trap the click event of the label
    - use the ShellExecute API and specify the target URL as argument 2 to that API call to run the default browser.


  4. #4
    Join Date
    Feb 2000
    Location
    Ireland
    Posts
    808

    Re: several questions

    If you don't have VB6 do the Following

    Dim MyString as string
    Dim MyStringRev as string
    MyString = InputBox("Please Enter A string", "string Reversal")
    for i = len(MyString) to 1 step -1
    MyStringRev = MyStringRev & mid(MyString, i, 1)
    next
    MsgBox "Your string Reversed is " & MyStringRev


    Hope This Helps


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