MYSQL dbsettablenum error

MYSQL dbsettablenum error

xucq
Not applicable
1,120 Views
6 Replies
Message 1 of 7

MYSQL dbsettablenum error

xucq
Not applicable

[ FlexSim 18.1.2 ]

Hi , my database can be connected, and I can read number from it. But when I use the dbsettablenum command , the error appeared. 40194-qq图片20210607094415.jpgThanks for your answer.数据库demo.fsm

0 Likes
Accepted solutions (1)
1,121 Views
6 Replies
Replies (6)
Message 2 of 7

Jeanette_Fullmer
Community Manager
Community Manager

Please contact our Chinese partner, BJCSN. They can provide you with direct assistance.

为了更好更快速的解决您的问题,可以联系我们当地中国区合作伙伴 (北京创时能),他们会为您提供专业的FlexSim技术答疑.

contact information / 联系方式:
[email protected] / [email protected]
QQ: 1093796825
@CSN

0 Likes
Message 3 of 7

supportPHJ4A
Collaborator
Collaborator

Hi , this is the problem of our Chinese users. Our engineers cannot find the cause of the problem. Please help to have a look , thanks a lot.

0 Likes
Message 4 of 7

philboboADSK
Autodesk
Autodesk
Accepted solution

The deprecated legacy db...() commands and the Database Connector are two separate tools. Don't use the db...() commands. Use the Database FlexScript API.



Phil BoBo
Sr. Manager, Software Development
Message 5 of 7

supportPHJ4A
Collaborator
Collaborator

Hi , Phil,

I know what you said, the version is 18.1 , and the dbgettablenum command is ok , except the dbsettablenum is not ok.

0 Likes
Message 6 of 7

philboboADSK
Autodesk
Autodesk

I understand that the version is 18.1. I understand that the dbgettablenum() command worked for you. The dbsettablenum() command doesn't. The db...() commands are all poorly designed, slow, and buggy. Don't use them. We've replaced them with a much better way to communicate with databases. Use the new way, not the broken, old way that does not work well and we do not support anymore.

Use the Database Connector object and the Database.Connection API. Both are available in FlexSim 18.1. See Help > FlexScript API Reference > Database.Connection. If you want to write to a database, use an INSERT INTO SQL statement. See the example in the description of Database.PreparedStatement in FlexSim 18.1's FlexScript API documentation.



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 7 of 7

xucq
Not applicable

Hi, Phil

Thanks for your answer, I will tell my user to use the new way.

0 Likes