What i was wondering for months now:
Has any of you an idea how i could use navision to read a 4-byte unsigned decimal (Single type in C# / C) with Navision? Reading a "Decimal" out of a binary file with Navision gets me nowhere - i guess nav has its own format. I cannot immagine doing it another way than reading a Binary and parsing an IEEE single out of it .. but then again: How in the world do you accomplish a SHL or SHR (shift-left, shift-right) in Navision?
I'm pretty stuck here ...
The freaks come out at night.
0
Comments
SHR - Value DIV 2
Integer in NAV is 4byte but signed. You can load any Integer value from file when in binary mode is used on the file. Than you just needs to work with the sign bit correctly.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Furthermore: Navsion does not allow AND and OR to be performed on Integeres / Decimals.
I guess i have to deal with some automations to get this working ... Any suggestions?
Once again:
Shift Left = Value * 2
Shift Right = Value DIV 2
You can modify it for bit AND just by replacing OR in the condition by AND.
Easy, isn't it? All bit operations are just math...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I guess that should do it ... I'll have a try.
Thanks a lot!