on 03-24-2017 11:14 AM
Hello experts ,
I am trying to make a connection with di add-on but i received the following error : Conversion from string "BoDataServerTypes.dst_MSSQL2012" to type 'Integer' is not valid.
Here is the code :
Dim line As String = "BoDataServerTypes.dst_MSSQL2012"
oCompany.DbServerType = line
I understand that the type is wrong but how can i convert the string in order to work the connection?Please advice.
Kind Regards,
Ifigeneia
Hi Ifigeneia,
If you need to use variable, then you need to declare your variable as BoDataServerTypes
Dim o as SAPbobsCOM.BoDataServerTypes = BoDataServerTypes.dst_MSSQL2012
oCompany.DBServerType = o
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
try this:
oCompany.DbServerType = BoDataServerTypes.dst_MSSQL2012
Kind regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Thomas,
The correct is that :oCompany.DbServerType = "BoDataServerTypes.dst_MSSQL2012" thank you for the answer but i must use a variable for that.
Kind Regards ,
Ifigeneia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.