Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ 2 QM
#1
What is the equivalent QM code for the following C++ code Smile
 
#1   (For statement section)
 
Code:
Copy      Help
int pos = SendEditor(SCI_GETCURRENTPOS);
int nPrevLinePos = SendEditor(SCI_POSITIONFROMLINE,line-1);
int c = ' ';
for(int p = pos-2;
    p>=nPrevLinePos && isspace(c);
    p--, c=SendEditor(SCI_GETCHARAT,p));

#2  (Char type variable definition section)
Code:
Copy      Help
char space[1024];
memset(space,' ',1024);
space[nIndent] = 0;
SendEditor(SCI_REPLACESEL, 0, (sptr_t)space);


Messages In This Thread
C++ 2 QM - by Davider - 04-03-2023, 10:15 AM
RE: C++ 2 QM - by Davider - 04-04-2023, 09:50 PM
RE: C++ 2 QM - by Davider - 04-08-2023, 01:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)