Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to assign a value to a custom Struct? #162

Open
sunmerx opened this issue Feb 3, 2023 · 1 comment
Open

How to assign a value to a custom Struct? #162

sunmerx opened this issue Feb 3, 2023 · 1 comment
Labels

Comments

@sunmerx
Copy link

sunmerx commented Feb 3, 2023

NeoLua Version:1.3.14

Example to reproduce:

item = plcns.WriteDataItem(){
    DataArea = plcns.DataAreaType.DB;
    DBNumber=660;
    StartAddress=100;
    ValueType=plcns.DataType.INT;
};

I'm trying to embed a script into a program so that the logic depends on the script. Initialize a custom body in a script and cannot assign values to its members.

@neolithos
Copy link
Owner

Can you show the signature of plcns and WriteDataItem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants