Click to See Complete Forum and Search --> : several questions


ptcoder
June 19th, 2000, 09:04 AM
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..

Lothar Haensler
June 19th, 2000, 09:06 AM
vb 6 has a strreverse function to reverse a string.

Lothar Haensler
June 19th, 2000, 09:08 AM
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.

TH1
June 19th, 2000, 09:18 AM
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