Share this page

# Example: GetBufferFrom<n>DByteArray

This example fills a byte array with strings of characters and then fetches them.

            ByteArray Var;

            Var = Create3DByteArray(0, 2, 0, 3, 0, 4);
            Fill3DByteArray(Var, 0, 0, "abcd", 4);
            Fill3DByteArray(Var, 0, 1, "efgh", 4);
            Fill3DByteArray(Var, 0, 2, "ijkl", 4);
            Fill3DByteArray(Var, 1, 0, "mnop", 4);
            Fill3DByteArray(Var, 1, 1, "qrst", 4);
            Fill3DByteArray(Var, 1, 2, "uvwx", 4);
            GetBufferFrom3DByteArray(Var, 0, 0, NULL);    //expected: "abcd"
            GetBufferFrom3DByteArray(Var, 0, 1, NULL);    //expected: "efgh"
            GetBufferFrom3DByteArray(Var, 0, 2, NULL);    //expected: "ijkl"
            GetBufferFrom3DByteArray(Var, 1, 0, NULL);    //expected: "mnop"
            GetBufferFrom3DByteArray(Var, 1, 1, NULL);    //expected: "qrst"
            GetBufferFrom3DByteArray(Var, 1, 2, NULL);    //expected: "uvwx"

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: