Imran Khan
2018-08-06 03:39:10 UTC
Hello,
I have a function which should return a value and i have to get the
returned value from the above function and i have to pass the value to
another function.
PFB the sample code skeleton,
1. Public Function fncActivateContract_CaptureContractNo()
' Few code here
End Function
2. Public Function fnc_T1_ContingentValidation(
strNoOfServices,contractNumber)
' Few code here
End Function
Below is the action,
Dim contactNumber
contactNumber = call fncActivateContract_CaptureContractNo()
Call fnc_T1_ContingentValidation(strNoOfServices,contactNumber)
Here i am getting two errors.
1. If the control comes here "contactNumber = call
fncActivateContract_CaptureContractNo()", then i am getting "Syntax error".
2. If the control comes here "Call fnc_T1_ContingentValidation(
strNoOfServices,contactNumber)", then i am getting "Type Mismatch" error.
Can anyone please help me out?.
Thanks in advance.
Thank you,
Imran.
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mercuryqtp+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have a function which should return a value and i have to get the
returned value from the above function and i have to pass the value to
another function.
PFB the sample code skeleton,
1. Public Function fncActivateContract_CaptureContractNo()
' Few code here
End Function
2. Public Function fnc_T1_ContingentValidation(
strNoOfServices,contractNumber)
' Few code here
End Function
Below is the action,
Dim contactNumber
contactNumber = call fncActivateContract_CaptureContractNo()
Call fnc_T1_ContingentValidation(strNoOfServices,contactNumber)
Here i am getting two errors.
1. If the control comes here "contactNumber = call
fncActivateContract_CaptureContractNo()", then i am getting "Syntax error".
2. If the control comes here "Call fnc_T1_ContingentValidation(
strNoOfServices,contactNumber)", then i am getting "Type Mismatch" error.
Can anyone please help me out?.
Thanks in advance.
Thank you,
Imran.
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to ***@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mercuryqtp+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.