While condition in Loop statement
Posted: Mon Sep 17, 2001 12:11 pm
Hi,
Could I put more than one condition in the "While" in this loop statement?
I want the program exit the loop (with a warn message) if Left(Ligne,1) =
< in the ptfile.
That is, if readseq begun at the A label, the program have to exit (stop
seq reading) when he encounter the B label, and if it begun at the B label,
exit at the end of the file.
*** The file ptfile is :
file1=toto
file2=titi
file1=tata
*** The loop statement :
Loop
While ReadSeq Ligne from ptfile
If Trim(Field(Ligne,=,1)) = NomParam
Then ValParam = Trim(Field(Ligne,=,2))
Exit
End
Repeat
Ans=ValParam
**
Thanks,
Kasia
Could I put more than one condition in the "While" in this loop statement?
I want the program exit the loop (with a warn message) if Left(Ligne,1) =
< in the ptfile.
That is, if readseq begun at the A label, the program have to exit (stop
seq reading) when he encounter the B label, and if it begun at the B label,
exit at the end of the file.
*** The file ptfile is :
file1=toto
file2=titi
file1=tata
*** The loop statement :
Loop
While ReadSeq Ligne from ptfile
If Trim(Field(Ligne,=,1)) = NomParam
Then ValParam = Trim(Field(Ligne,=,2))
Exit
End
Repeat
Ans=ValParam
**
Thanks,
Kasia