Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14265
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: Sat Jul 05 18:03:40 CEST 2025

Total time taken to generate the page: 0.02504 seconds