2/14/2021 4:15 PM | |
Joined: 4/14/2019 Last visit: 4/22/2025 Posts: 43 Rating:
|
Hello., As a practice 1. I want to pass two values through vbs parameters of a function 2. To do simple addition, subtraction. 3. Pass that two results through vbs parameters. Is is possible to pass result through parameters or RET of function. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Example '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Function Result(Parameter_1 As Byref, Parameter_2 As Byref, Parameter_3 As Byref,Parameter_4 As Byref,) Dim A,B,C,D A = Parameter1 " Moving Value of Parameter1 to Variable A B = Parameter2 " Moving Value of Parameter2 to Variable B C = Parameter1 + Parameter2 D = Parameter1 - Parameter2 Parameter3 = C " Moving result value of C to Parameter3 Parameter4 = D " Moving result value of C to Parameter4 End Function Let me know if any correction. Thx TN Sudheer. VBS Learner ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 02/15/2021 11:51:32New subject after splitting |
|
Follow us on