Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working of if command
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01412935
Message ID:
01412939
Views:
85
This message has been marked as the solution to the initial question of the thread.
Khubaib,

If you want it to stop, the simplest way would be to add RETURN right after SetFocus.

See another change I made. It is very important in your case to add NOFILTER clause in your select statement.

See some changes inline.

>endif command do not stops.
>
>
>mtxt_snot=thisform.text4.value
>IF EMPTY(mtxt_snot)
>=MESSAGEBOX("Please Write subscriber# in box")
>
>thisform.text4.setfocus 

  RETURN

>endif&& should be stop but stop



>
>
>SELECT * FROM registration WHERE mtxt_snot=sno ORDER BY sno INTO CURSOR hj98890op NOFILTER
* SELECT hj98890op
>IF _TALLY = 0
>=MESSAGEBOX("Record in not in list")
>
>RETURN 0
>ENDIF
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform