Whenever we address a variable in our program like main\abc() if we don't have that variable in the CP the program shows us "ERROR: Undefined variable"
Is it possible to tell the program that if you couldn't find main\abc show this message like "sorry can't find the number" or?if you couldn't find main\abc do something else.
Thanks
Undefined Variable !
Started by
masoodkardorost
, Mar 09 2008 01:28 PM
2 replies to this topic
#1
Posted 09 March 2008 - 01:28 PM
#2
Posted 09 March 2008 - 08:50 PM
just construct an IF statement at the start of the program to check for the state of the variable and return your message when it is not defined :-)
#3
Posted 10 March 2008 - 06:51 PM
did u try?
for example if the program cant find the vriable it shows the error and will not pass that
then how it can show the message?!!!
for example if the program cant find the vriable it shows the error and will not pass that
then how it can show the message?!!!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users