As I said
'There is an invalid character ( ' + p + ' ) in the "Key:" signature. Please correct the key to a valid key character.'
Is an expression.
You need to cast the result
Application.MessageBox(PCHAR( 'There is an invalid character ( ' + p + ' ) in the "Key:" signature. Please correct the key to a valid key character.' ) , 'Invalid Key Character', MB_ICONERROR);
Assuming, that "p" is a string.
Ah.... adding PChar to the front of the entire string.
Learn something every time I come on this forum. Very Helpful
THANK YOU!!