Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working of if command
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01222882
Message ID:
01222887
Vues:
23
I think you misplaced the closing endif.

E.g. it should be
if MyFirstConditon
   do something
else
   =messagebox(...)
   return .f.
endif

if another condition
   do more work
else
  =messagebox()
  return .f.
endif
Then something and more work would be done only if both MyFirstCondition and Another Condition would be true.

But actually your statements are all wrong. Can you tell in English what you're trying to check and do?


>When i run these codes, only work first if, I think not read scond if
>
>
>if thisform.text1.value=="123" or Alltrim(thisform.feeuser.value)=="khubaib"
>      feeuser=thisform.feeuser.value
>  Do Form frsptc
>    thisform.release
>
>   Else
>     = Messagebox('not allowed', 32, product)
>     thisform.release
>     Return .T.
>
>
>if ALLTRIM(thisform.text1.value)=="123" or Alltrim(thisform.feeuser.value)=="abid"
>      feeuser=thisform.feeuser.value
>    Do Form frsptc
>    thisform.release
>
>   Else
>     = Messagebox('not true', 32, product)
>     thisform.release
>     Return .T.
> ENDIF
> ENDIF
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform