' Rapid-Q built-in SendMessage doesn't support sending string longer than 255 bytes, ' use below API instead. The built-in PostMessage does support long string. DECLARE FUNCTION SendMessageR LIB "user32" ALIAS "SendMessageA" (hwnd AS LONG, _ wMsg AS LONG, wParam AS LONG, BYREF lParam AS LONG) AS LONG 'SendMessage that returns stuff SendMessageByString (RichEditHandle, WM_SETTEXT, 0, Text$ & CHR$(0))