Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: hs2
« on: October 29, 2007, 09:37:49 AM »

Maybe using this http://community.slickedit.com/index.php?topic=2037.msg8528#msg8528
method could help and avoids the effort writing a macro. - HS2
Posted by: b0rj
« on: October 29, 2007, 03:14:18 AM »

Hi,

I would like to open all the files in a project, parse it, search for a string, and generate an output.
I'm completely new to slickEdit programming. Sorry for the grammar.

Example
#define STRINGTOBESEARCH 1
#define VALUE 1
#define ERROR -1


if (STRINGTOBESEARCH == 1) {
    varA = VALUE
    varB = VALUE
}

else {
    varC = ERROR
    varD= ERROR
}

The output is something like this in a buffer or text file:
varA = 1
varB = 1
 
Thanks.