Guest_imported
New member
- Jan 1, 1970
- 0
I am tryng to set up some variable's based on the txtInput.value the first part works fine, but for some reason the second for statement never gets true. but I can see a period in the debug window. any help is really appreciated. heres the code:
I = 1
For I = 40 to 1 step -1
If Substr(ThisForm.txtInput.Value,I-1,1) = "\"
cPath = Substr(ThisForm.txtInput.Value,1,I-1)
Exit
Endif
Endfor
*
A = 1
For A = 40 to 1 step -1
If Substr(ThisForm.txtInput.Value,I-1,1) = "."
cOutput = Substr(ThisForm.txtInput.Value,1,I-4)
Exit
Endif
Endfor
*
Thanks again -Mike
I = 1
For I = 40 to 1 step -1
If Substr(ThisForm.txtInput.Value,I-1,1) = "\"
cPath = Substr(ThisForm.txtInput.Value,1,I-1)
Exit
Endif
Endfor
*
A = 1
For A = 40 to 1 step -1
If Substr(ThisForm.txtInput.Value,I-1,1) = "."
cOutput = Substr(ThisForm.txtInput.Value,1,I-4)
Exit
Endif
Endfor
*
Thanks again -Mike