I have Visual BASIC 6.0 Learning Edition for Windows 95/98. I ordered Power BASIC Console Compiler, Power BASIC/DLL, and PowerGen program because I am frustrated by the limitations of Visual BASIC. From reading the forum messages, I found out that PB/CC has INKEY$ and WAITKEY$ functions but PB/DLL doesn’t have them. How can I simulate the INKEY$ and WAITKEY$ functions in PB/DLL? I downloaded sample code and programs written using Power BASIC/DLL and found out that I have to write code for Power BASIC/DLL almost the same way that I write code for Visual C++, not the way that I write code for Visual BASIC. In Quick BASIC, I can write code like this:
Print “Stillwell Avenue”
While Inkey$=””:Wend
Print “86th Street”
While Inkey$=””:Wend
Print “Avenue U”
While Inkey$=””:Wend
Print “Kings Highway”
While Inkey$=””:Wend
In Visual BASIC, I have to write code like this:
Private Sub Command1_Click(Index As Integer)
stopindex = stopindex + 1
End Sub
Sub routetype01()
Select Case stopindex
Case 1
Text1.Text = "Stillwell Avenue”
Case 2
Text1.Text = "86th Street”
Case 3
Text1.Text = "Avenue U”
Case 4
Text1.Text = "Kings Highway”
End Select
End Sub
Jeffrey.
Print “Stillwell Avenue”
While Inkey$=””:Wend
Print “86th Street”
While Inkey$=””:Wend
Print “Avenue U”
While Inkey$=””:Wend
Print “Kings Highway”
While Inkey$=””:Wend
In Visual BASIC, I have to write code like this:
Private Sub Command1_Click(Index As Integer)
stopindex = stopindex + 1
End Sub
Sub routetype01()
Select Case stopindex
Case 1
Text1.Text = "Stillwell Avenue”
Case 2
Text1.Text = "86th Street”
Case 3
Text1.Text = "Avenue U”
Case 4
Text1.Text = "Kings Highway”
End Select
End Sub
Jeffrey.
Comment