U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » ESC macro problem
Re: ESC macro problem [message #52210 is a reply to message #52191] Fri, 09 August 2019 10:03 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Macros are really "methods of editor", and SetCursor etc.. are methods too, that is why you cannot invoke them in global functions. You need to define a method...

	.test = @(a, b)
	{
		SetCursor(0);
		if (Find("STD::COUT", 1, 1))
		{
			f = GetSelBegin();
			l = GetSelCount();
			SetCursor(f);
			Remove(l);
			s = a + "::" + b;
			Insert(s);
		}
	};
	
	test(A, B);
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: thread bug....and fix
Next Topic: SOLVED: icon no longer shows
Goto Forum:
  


Current Time: Fri Jun 12 08:37:55 GMT+2 2026

Total time taken to generate the page: 0.00454 seconds