3
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by waynespangler
0

through parameterised constructor OR module , u can resolve the issue, please revert back if any prob

0

consider the following scenario.....

frmA =frm from where the value need to pass.
FrmB= the rec of the value.

'in frmB declare a instance variable of the
'TypeofValueUWantToRecieve
dim x as TypeofValueUWantToRecieve

'in frmB create/overload a new constructor Or modify the default 'constructor

public sub new (byVal xVal as theTypeofValueUWantToRecieve )
x=xVal
end sub


''''''''''''''''''''''In frmA while creating obj of frmB , pass the value in ''''''''para..

ex:
dim valueToPass as TypeofValueUWantToPass=someValue
dim ObjFrmB as new frmB(valueToPass )
ObjFrmB.show()

please revert bk if any prob......

0

The simple way is to declare the variable in a module and declare it public. Set or read the variable from any form.
If however you are worried about security then do as jabijohn says.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.