Can someone brighter than me plz translate this psuedo code into BCB?! (using bcb6e)
The general idea is to remove lines from Memo1 that contains words from memo2 (each word is seperated by cariage return)the user also has the options:
"Remove" remove line if word exists else keep
and
"keep", keep line if word exists else keep
for each line in memo1
store line in array
for each word in memo2
check if line contains word
if keep if exist word
if exists
remove line
stop.
stop.
else if remove if exist word
if exists
remove line
stop.
stop.
end.
end. My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
The general idea is to remove lines from Memo1 that contains words from memo2 (each word is seperated by cariage return)the user also has the options:
"Remove" remove line if word exists else keep
and
"keep", keep line if word exists else keep
for each line in memo1
store line in array
for each word in memo2
check if line contains word
if keep if exist word
if exists
remove line
stop.
stop.
else if remove if exist word
if exists
remove line
stop.
stop.
end.
end. My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work