View previous topic :: View next topic |
Author |
Message |
john62
Joined: 20 Feb 2007 Posts: 10
|
Posted: Thu Oct 08, 2009 10:00 pm Post subject: Transport boolean on VB-6 to Ftn95.dll |
|
|
The subject say it all.
have anybody try to transport on VB-6 a boolean value to a FTN95 as a Logical ??
How do you do it ??
greatings john |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri Oct 09, 2009 8:55 am Post subject: |
|
|
The simplest solution may be to convert it to a 32 bit integer (0 or 1) and send it in this form.
I think that FTN95 stores a default LOGICAL TRUE as a 32 bit (-1) but I would have to check this. If not then it will be (+1). |
|
Back to top |
|
|
Robert
Joined: 29 Nov 2006 Posts: 445 Location: Manchester
|
Posted: Fri Oct 09, 2009 9:53 am Post subject: |
|
|
I think VB has 'True' as -1 (all bits on). |
|
Back to top |
|
|
john62
Joined: 20 Feb 2007 Posts: 10
|
Posted: Mon Oct 12, 2009 2:23 pm Post subject: |
|
|
OK paul
it's works via this sidestap
On VB-6 the " logical " gived 1 or 0 and send it to FTN95 as a integer
On FTN95 recieved it like a logical
and all works fine now
thanks you |
|
Back to top |
|
|
|