Hi Aurel,
Macros are a good replacement for short procedures, like your setText. The syntax is quite flexible:
macro SetText(h,s) {SendMessage h,WM_SETTEXT,0,s}
macro SetText(h,s) {
SendMessage h,WM_SETTEXT,0,s
}
macro SetText(h,s)
{
SendMessage h,WM_SETTEXT,0,s
}
macro SetText(h,s)
SendMessage h,WM_SETTEXT,0,s
end macro
macro SetText(h,s) SendMessage h,WM_SETTEXT,0,s
#define SetText(h,s) {SendMessage h,WM_SETTEXT,0,s}
#define SetText(h,s) SendMessage h,WM_SETTEXT,0,s
I am currently working on full macro functions, which may be used in expressions, exactly like a normal function (PB can do this).
PS: I have not encountered any issues with left(), so far