i have a project built as an *.exe
this project is essentially 1 main form.
every once in a while i try pressing one of the buttons to make it do something and it freezes (goes to an hourglass, when it shouldn't). it says it is running in the task manager but it never stops.
at first i thought it was an infinite loop mistake on my part but i can't see how that is possible.
this is driving me mad, please help! thank you
very simply, i am trying to trim any non alphanumeric chars from the beginning of each line of text.
some info regarding my app:
ShowWindow = 2 (As top-level form)
WindowType = 0 (modeless)
MDIForm = .F.
here is the click() event code that gets stuck:
Dan Trenz
Ann Arbor, MI
this project is essentially 1 main form.
every once in a while i try pressing one of the buttons to make it do something and it freezes (goes to an hourglass, when it shouldn't). it says it is running in the task manager but it never stops.
at first i thought it was an infinite loop mistake on my part but i can't see how that is possible.
this is driving me mad, please help! thank you
very simply, i am trying to trim any non alphanumeric chars from the beginning of each line of text.
some info regarding my app:
ShowWindow = 2 (As top-level form)
WindowType = 0 (modeless)
MDIForm = .F.
here is the click() event code that gets stuck:
Code:
cTrk = thisform.edit1.value
cTrkFinal = ""
FOR i = 1 TO MEMLINES(cTrk)
m.line = ALLTRIM(MLINE(cTrk, i))
DO WHILE !(ISALPHA(LEFT(m.line,1)))
m.line = SUBSTR(m.line,2)
ENDDO
cTrkFinal = cTrkFinal+m.line+CHR(13)
ENDFOR
thisform.edit1.value = cTrkFinal
Dan Trenz
Ann Arbor, MI