You are right. Your code did include [ i ] (without spaces), but this is a BB tag used by this Forum for
italic text and is the reason for the rest of your post (after the first [ i ]) to
look like this. I didn't notice this either, until you wrote that you did actually use "
" in your code. (notice the italic text and the missing
[ i ]).
When posting code snippets, to avoid the Forum from interpreting part of your code as BB tags, you should use the "Insert Code" button (the "
#" icon above). This will insert
[ code ] (without spaces) before your code snippet and
[ /code ] (also without spaces) after your code, disabling BB tag interpretation between the two. Here is how your two ByteArray examples would look like by selecting your code and using the "Insert Code" (
#) button above:
Rtctypes::RtcByteArray ByteArray = Result->NewByteArray( 1024*128 );
for (int i=0; i<ByteArray.Length; i++)
ByteArray[i] = (Byte)i;
Result->NewByteArray( 1024*128 );
for (int i=0; i<Result->asByteArray.Length; i++)
Result->asByteArray[i] = (Byte)i;
I've made the same mistake a number of times when posting code examples, but I always keep forgetting it.
Best Regards,
Danijel Tkalcec