FindLine Function doesn't look at all lines

I am using the NSIS function LineFind.

My Problem: The function LineFind is only searching the 1st line of a file then stopping. Its not going onto the next line of the file till the end. Isn't the function meant to search EVERY line of the file for my TargetLine?

How can I get LineFind to search EVERY line and not just the 1st line?

Function FindLineCallback
    # Only ever prints out the first line and never runs this function again
    DetailPrint "LINE: $R9"

    ...Unrelated code to check line

Function FindLine
    # TOP = Top of stack
    # T-2 = mDir
    # T-1 = mFile
    # TOP = targetStr

    Pop $R8  # targetStr
    Pop $R7  # mFile
    Pop $R6  # mDir 

    ${LineFind} "$R6\$R7" "" "1:-1" "FindLineCallback"



Found the answer: I just need to Push a number value at the end of the callback function to "signal" that I want to continue looking

Function FindLineCallback
    DetailPrint "LINE: $R9"

    Push 2

Need Your Help

Java organize subclasses into different folders

java eclipse package subclass superclass

My problem is with Eclipse, something that seems super simple but I just don't know enough to figure out how to do it. I want to put the subclasses of the objects I have created into folders in the

Data from Android Mobile to Java Application through Socket

java android sockets android-asynctask asyncsocket

I want to transfer data from Android device to the java desktop server. I have a text and button. As I press the button on the device, the text should be displayed on the java desktop server. I als...