[elektro] Ooo Calc bitenkénti logikai műveletek

Acs Gabor levlista at e8e.eu
Wed Nov 27 11:46:13 CET 2013


Gyárilag ilyen nincs benne, nem tudom Excelben van-e.
Örültem, hogy találtam rá megoldást, még másnak is jól jöhet, ezért 
közzéteszem. Persze nem egy atomfizika, biztos van akinek csípőből menne.


1
Invoke Calc by double-clicking on its icon.

2
Select "Tools," "Macros," "Organize macros," then "OpenOffice.org 
BASIC." The macro creation window will come up.

3
Enter "Bitwise" in the "Macro name" field, then click on "New." The 
program editor window will come up. Erase everything under the "REM" line.

4
Enter the source code for the new macros: Function BitAND( val1 , val2 ) 
BitAND = val1 AND val2 End Function Function BitOR( val1 , val2 ) BitOR 
= val1 OR val2 End Function Function BitXOR( val1 , val2 ) BitXOR = val1 
XOR val2 End Function

5
Click on the "Compile" icon. Click on the "Save" icon. The three 
functions "BitAND," "BitOR" and "BitXOR" are now available to compute 
cell values.



-- 
Gábor



More information about the Elektro mailing list