running a sub only if it exists

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

running a sub only if it exists

Timothy Spaulding

Hello all,

 

I want to test to see if a sub exist before I attempt to call it, like this:

 

If (sub_to_do_something exists) { &sub_to_do_something(parms);}

 

Sub sub_to_do_something

{

}

 

I’ve seen the keyword ‘ref’ used, but I don’t know how to use it here.

 

Tim


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users