Just a question #4
-
|
Hello. Why you used this in the |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 34 replies
-
|
Hi, just because I needed to convert the 4 bytes into a DWORD. I could have done this in a few other ways, obviously. Is there a reason why you're asking, or just from curiosity? |
Beta Was this translation helpful? Give feedback.
-
|
Why you used strange name variables here Public Enum JsonPageCode
jpCodeAutoDetect = -1
[_jpcNone] = 0
jpCodeUTF8 = 65001
jpCodeUTF16LE = 1200
jpCodeUTF16BE = 1201
jpCodeUTF32LE = 12000
jpCodeUTF32BE = 12001
[_jpcCount] = 5
End Enumlike |
Beta Was this translation helpful? Give feedback.
-
|
Since we have renamed the isDict = (TypeOf vars.arr(0) Is Dictionary) |
Beta Was this translation helpful? Give feedback.
-
|
It would be great to see an |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried passing a missing variable to the serializer? I have Error 4 like a result. |
Beta Was this translation helpful? Give feedback.

Oh that. 😆 Yeah, I wouldn't worry about that in this simple scenario. Unpredictable results can happen with more complex UDTs (with nested structures containing strings and arrays) not with 4 adjacent bytes.
That being said, I might replace this method entirely with using a
ByteAccessoras I remember quickly doing this one to move over to some other parts of the module.