| Title: | BASEstar Open Multiplatform Application Framework |
| Notice: | Kit pointers: see topic 3 |
| Moderator: | VARESE::CORBETTA |
| Created: | Tue Oct 02 1990 |
| Last Modified: | Fri Jun 06 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 607 |
| Total number of notes: | 1971 |
Hi all,
Using expressions with B*Open I found the following behaviour that I
could not understand
BSTR> create data_point a -datatype UNSIGNED_8
BSTR> create data_point b -datatype UNSIGNED_8
BSTR> create data_point c -datatype UNSIGNED_8 -expression "a || b"
BSTR> create data_point cc -datatype UNSIGNED_8 -expression "a | b"
BSTR> get value data a
0
BSTR> get value data b
0
BSTR> get value data c
0
BSTR> get value data cc
0
BSTR> put value data a
(Unsigned 8): 1
BSTR> get value data c
0
BSTR> get value data cc
1
I would expect data_point c to be one also.
By the way, the documentation at page 3-35 seems to be incorrect
Logical Or should be || and not !!
Bitwise Or should be | and not !
Thanks for your help
regards
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 565.1 | this has to be a QAR | IMPERO::SERRA | We allow more rock'n'roll | Tue Feb 11 1997 14:15 | 15 |
>> I would expect data_point c to be one also.
Yes, you're right.
>> Logical Or should be || and not !!
>> Bitwise Or should be | and not !
Right again.
I'll post this in the QAR conference.
- Beppe -
| |||||