VB5's INKEY$ Equivalent...URGENT! 
Author Message
 VB5's INKEY$ Equivalent...URGENT!

Hi...I really need to know what VB5's equivalent to regular BASIC's
inkey$ is...I've got a semester project due tomorrow. Long
story....don't ask :)
Thanks in advance...
-Ryan



Sat, 11 Nov 2000 03:00:00 GMT  
 VB5's INKEY$ Equivalent...URGENT!

Set Forms KeyPreview property to true

In Form_KeyPress routine

    KeyAscii = the key that was pressed

Quote:

>Hi...I really need to know what VB5's equivalent to regular BASIC's
>inkey$ is...I've got a semester project due tomorrow. Long
>story....don't ask :)
>Thanks in advance...
>-Ryan



Sun, 12 Nov 2000 03:00:00 GMT  
 VB5's INKEY$ Equivalent...URGENT!

Use this ; (16 bit version)
'
'**********************************************************************
'* Category :  Code Functions
'* Procedure:  InKey
'* Changed  :  20-03-1998, 19:47 by :
'* Placed   :  27-05-1998, 20:00 by :
'* Revision :
'*
'* Purpose  :
'* To check of the given key or mousebutton is pressed (for example
'* during lostfocus-events)
'* Example  :
'* If InKey(1) = True Then Debug.Print "Left mousebutton is pressed!"
'* If InKey(9) = True Then Debug.Print "Tab-key is pressed!"
'* See \VB\WINAPI\win30api.txt for the 'VK_...' -keys.
'**********************************************************************
'
'[CodeLib message : Move next section into General Declarations...]
'General Declarations / Constants for procedure : InKey
'Declare Function GetKeyState Lib "User" (ByVal nVirtKey As Integer) As
Integer
'
Function InKey (KeyCode As Integer) As Integer
    '
    On Error Resume Next
    '
    Dim a%
    '
    a% = GetKeyState(KeyCode)
    If Abs(a%) > 100 Then
        Debug.Print "Key (" & KeyCode & ", " & a% & ") = pressed!"
        InKey = True
    End If
    '
End Function


Quote:
>Hi...I really need to know what VB5's equivalent to regular BASIC's
>inkey$ is...I've got a semester project due tomorrow. Long
>story....don't ask :)
>Thanks in advance...
>-Ryan



Sun, 12 Nov 2000 03:00:00 GMT  
 VB5's INKEY$ Equivalent...URGENT!

InputBox$

--
Bodi Klamph
Azure Dragon Software

Quote:

>Hi...I really need to know what VB5's equivalent to regular BASIC's
>inkey$ is...I've got a semester project due tomorrow. Long
>story....don't ask :)
>Thanks in advance...
>-Ryan

begin 666 Bodi Klamph.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DML86UP:#M";V1I#0I&3CI"
M;V1I($ML86UP: T*14U!24P[4%)%1CM)3E1%4DY%5#I"2VQA;7!H0$%Z=7)E

`
end


Sun, 12 Nov 2000 03:00:00 GMT  
 VB5's INKEY$ Equivalent...URGENT!


Quote:


>> Hi...I really need to know what VB5's equivalent to regular BASIC's
>> inkey$ is...I've got a semester project due tomorrow. Long
>> story....don't ask :)
>> Thanks in advance...
>> -Ryan

or perhaps use the keypress event


Thu, 30 Nov 2000 03:00:00 GMT  
 VB5's INKEY$ Equivalent...URGENT!

Or KeyDown Event

Quote:





>>> Hi...I really need to know what VB5's equivalent to regular BASIC's
>>> inkey$ is...I've got a semester project due tomorrow. Long
>>> story....don't ask :)
>>> Thanks in advance...
>>> -Ryan

>or perhaps use the keypress event



Fri, 01 Dec 2000 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. INKEY$ in VB5

2. Setup Wizard VB5 URGENT Guru's Please Help

3. 'through account' VBA equivalent

4. Word Equivalent to 'CountIf'

5. Word equivalent to 'Countif'

6. VBA's Equivalent of VBScript's SetLocale

7. VB equivalent of COBOL 'redefines'?

8. Shortcut Keys and 'SOUND' Equivalent

9. 32 bit api equivalent for 'hmemcpy'

10. VBA's Equivalent of VBScript's SetLocale

11. equivalent of 'clustered' (SQL) in ORACLE

12. equivalent of 'this'

 

 
Powered by phpBB® Forum Software