saratchandra
New Member
- Joined
- Mar 16, 2018
- Messages
- 6
Hi,
I am writing VBA script to generate JSON file from excel which contains the data in excel sheet.
I initialized the below function in VBA. But when I try to call the function i am getting error in WriteLine. Without WriteLine I am able to call the function.
Do I have to declare anything to call the function in Sub. I tried all the methods to make it work. But i am not able to do that.
Public Function Get_Datatype_String(my_s As String) As String
If (my_s = "DCI_DTYPE_BOOL") Then
Get_Datatype_String = "DCI_BOOL"
BLE_DCI_JSON.WriteLine(" Get_Datatype_String")
End If
End Function
Please help me in solving the issue.
Thanks & Regards,
Sarath.
I am writing VBA script to generate JSON file from excel which contains the data in excel sheet.
I initialized the below function in VBA. But when I try to call the function i am getting error in WriteLine. Without WriteLine I am able to call the function.
Do I have to declare anything to call the function in Sub. I tried all the methods to make it work. But i am not able to do that.
Public Function Get_Datatype_String(my_s As String) As String
If (my_s = "DCI_DTYPE_BOOL") Then
Get_Datatype_String = "DCI_BOOL"
BLE_DCI_JSON.WriteLine(" Get_Datatype_String")
End If
End Function
Please help me in solving the issue.
Thanks & Regards,
Sarath.