Calculates the number of characters of data in a string.
size();
Integer. Returns the number of characters in the string (0 if empty), if successful, and a negative number, if failed.
Pointer to object |
Object |
---|---|
|
|
|
|
string mystr;
int num;
mystr = “abcdefg”;
num = mystr.size();
//num is now 7, the number of characters in mystr
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |