OUT- The instruction:   sends a data byte to the designated port.
Example:

PRINT "Now turning on the motor in disk drive A:"
PRINT "Press a key to stop the motor"

DO

OUT &h3f2, 28   "Turns on the motor of floppy drive A:"
LOOP UNTIL INKEY$ <> " "

OUT &H3F2, 12     'Turns off the motor of drive A:'
END

---------------------------------------------

INP - The instruction: Receives keyboard input from the user and assigns it
to a variable.
Example:

PRINT   "Please enter your name:"    'This string appears on the screen.
INPUT   YourName$                       'YourName$ is the variable that the
above response is assigned to.
PRINT   "Hello, "' YourName$         'This prints "Hello, Whatever your name
is"




----- Original Message ----- 
From: "dkarimi57" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 3:06 AM
Subject: [Visual Basic 6 programming] How to exchange signals? help


>
>
> Hi
> My name is Davood and I am PhD student in University of Manitoba.
> I have quite good knowledge of VB but do not know much about BASIC
> itself, though there should be much similarity between the two.
> I am given a long code in BASIC and I am supposed to convert it to
> VB. Inside the code, there are several cases of OUT and INP commands
> which are used for exchanging data with some external electronic
> devices. But I don't know what are the equivalent to these commands
> in VB. Could you please help me in any way? I would be very much
> grateful if you can give me any help.
> Best regards,
> Davood
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    
http://groups.yahoo.com/group/visualbasic6programming/post?act=reply&messageNum=17791
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/visualbasic6programming/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to