Page 1 of 1

PostPosted: Sun Jul 07, 2002 3:05 am
by PenreeSoft
I am unsure why this isn't working:
<pre id=code><font face=courier size=2 id=code>
</font id=code></pre id=code>

It is just executing the first one, I switched them and then it did it when i entered Penree but not Admin...wierd...

Nicholas J. Penree

Edited by - PenreeSoft on 07/06/2002 22:06:04

PostPosted: Sun Jul 07, 2002 3:53 am
by design4use
maybe each of the two conditions needs to be in its own parenthesis in addition to the ones on the outside?

PostPosted: Sun Jul 07, 2002 3:56 am
by samps
Not quite sure but, have you tried a few more brackets, like:

if((fld1.text=="Admin") || (fld1.text=="Penree"))


PostPosted: Sun Jul 07, 2002 11:28 am
by PenreeSoft
Yes, I get compiler errors. Don't worry about it, I just did seperate if statements, would have been nice to do only 1 though.

Nicholas J. Penree

PostPosted: Mon Jul 08, 2002 5:32 am
by dewey
I am not able to reproduce either one of these problems. Double check your syntax, and make sure you really are using == instead of =. If you still have problems, email the project to me directly and I will take a look.

PostPosted: Mon Jul 08, 2002 11:29 am
by PenreeSoft
Thanks Jeremy,

It was actually my fault (when isn't it) I was using a memo.line() command so when doing the first one it would go to the next line and try to do the seconds part and it couldn't find the thing on the first line. I am using two seperate if statements to cure this.

Nicholas J. Penree