Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to define data type for integer,binary & hexadecima
Message
From
24/01/1999 13:40:08
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00179567
Message ID:
00179595
Views:
28
Ed Rauh,
I have a problem to pass a hexadecimal parameter in VFP but in Vb that is ok, why ?
Below is VB code :

>Dim PortAddress As Integer
>Dim nData As Integer
>PortAddress = &H2E3
>Out PortAddress, 128
>PortAddress = &H2E0
>nData = 1
>Out PortAddress, nData
>text1.text= Inp(PortAddress)

Do you know how to pass a hexadecimal value of "&h2E3" to the PortAddress in VFP ? When i display the return value from Inp(PortAddress), it is not the actual value i want that is not an integer!!
how to solve it ?

regard,
chang
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform