ODL contains a String Object class, so you may not need to use character arrays. However, if you do, character arrays in ODL have two characteristics to keep in mind—how the character array is initialized, and how it is passed to a function.
To initialize a character array, enter:
char my_array[5] = {"a", "b", "c", "d", "e"};
You cannot pass a character array to a function. You can only pass the address of the array.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |