‘Is Supplied’ Expression

lightIS SUPPLIED’ expression use


The expression ‘IS SUPPLIED’ is used inside the methods, It checks an actual parameter is assigned to the formal parameter . It can be used also in function modules but not in update function modules and asynchronous function modules.

The post shows a simple sues of it.

A class with a method and having two optional parameters.

1


In the code ‘is supplied’ and ‘is not supplied’ expressions are used.

2


Program:  

Method call 1, calls the two optional parameters, so these are supplied/requested.

Method call 2 & 3 calls with only one optional parameters. So method call 2, iv_text1 is supplied and iv_text2 is not requested,supplied. and method call 3 is just opposite of method call 2.

3

Output

4


 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s