Monday, March 26, 2012

Pass the values to the sub..

I am not sure how to pass the value to use another sub..

i want to pass these two value to another sub(passvalue ())..

Sub page_load(source as object, E as eventArgs)
strvalue1="value1"
strvalue2="value2"

passvalue()

end sub

sub passvalue()

xxxxxxxxx
end sub


Sub page_load(source as object, E as eventArgs)
strvalue1="value1"
strvalue2="value2"

passvalue(strvalue1, strvalue2)

end sub

sub passvalue(byval arg1 as string, byval arg2 as string, etc...)
xxxxxxxxx
end sub

0 comments:

Post a Comment