[Gambas-user] If condition

Daniel Campos daniel.campos at ...338...
Sun Mar 7 19:19:03 CET 2004


Mmmh... the condition you say is always true, that is, if
Cdcol.Text="11...", the left side is different than "00" so
you receive the message, and if CdCol.Text="00...", the left
side of the string is diffrent than "11" so you receive the
message. If CdCol.Text is any other thing, you will also receive
the message as it is different than "00.." and "11.."... may be
you want to do that:

IF Left$(Cdcol.text,2) <> "00" AND Left$(Cdcol.text,2) <> "11" THEN
  message.warning ("  Verifier vos variables SVP","OK")
END IF

Regards,

Daniel Campos



El dom, 07-03-2004 a las 17:35, Jack escribió:
> Hello Gambers !
> 
> Is anybody can tell me what is wrong about this ?
> 
>   IF Left$(Cdcol.text,2) <> "00" OR Left$(Cdcol.text,2) <> "11" THEN
>   message.warning ("  Verifier vos variables SVP","OK")
> 
> This one give the same result(Don't work).
> 
>   IF not Left$(Cdcol.text,2) = "00" OR not Left$(Cdcol.text,2) = "11" THEN
>   message.warning ("  Verifier vos variables SVP","OK")
> 
>  °~Jack~°
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list