Home All Groups Group Topic Archive Search About
Author
19 Mar 2006 4:31 PM
Sweet.mhtrq
For Each c As Char In "p123"
    Send(c)
    Thread.Sleep(100)
Next c

It works in VB.NET
but I code my project in VB6.0
What's the change?

Author
19 Mar 2006 4:39 PM
Bob Butler
<Sweet.mh***@gmail.com> wrote in message
news:1142785908.687350.79360@u72g2000cwu.googlegroups.com
> For Each c As Char In "p123"
>     Send(c)
>     Thread.Sleep(100)
> Next c
>
> It works in VB.NET
> but I code my project in VB6.0
> What's the change?

VB6 and VB.Net are effectively completely different languages

at a guess...

Private Declare Sub Sleep lib "kernel32" (byval dwMSecs as long)

Dim s As String
Dim x As Long
s="p123"
For x=1 to Len(s)
  Call Send(Mid$(s,x,1))
  Call Sleep(100
Next


--
Reply to the group so all can participate
VB.Net: "Fool me once..."