How to get text from PDEText element
I wrote the following code to get the text from a PDEtext element, however, the AVAlertNote is appearing blank. How would I go about fixing the problem.
int blen;
blen=PDETextGetText(pdeText,kPDETextRun,k,NULL);
char* stringBuffer = (char*)calloc( blen + 1, sizeof(char) );
PDETextGetText(pdeText,kPDETextRun,k, (ASUns8*)stringBuffer);
AVAlertNote(stringBuffer);
