Werner
Member
I am sure this topic has been discussed before. But there are so much topics about pointers etc. that it's hard to find what I am looking for. So here is my question.
I have a DB in which if have an UDT. This UDT is 34 bytes long. In total I use the UDT 30 times in this DB.
I have an FC in which I need to perform an action where I need the data from the a UDT.
I have to call this FC several times.
Call FC 1 with input data from the first UDT
Call FC 1 with input data from the second UDT
Call FC 1 with input data from the ... UDT
Call FC 1 with input data from the last UDT
Inside the FC I created a tempory off the type UDT.
Note: all the time I am talking about the same UDT nr. (So the data is always the same)
As input to the FC I want an any pointer to the data that is used that call.
Now I need to find a way to use this any pointer to copy data from the DB to the temporary UDT inside the FC. How can I do this?
Why I want this:
1 - The any pointer is very readable at the call. (outside the FC)
2 - The temporary bits/bytes have nice readable names. (inside the FC)
I have a DB in which if have an UDT. This UDT is 34 bytes long. In total I use the UDT 30 times in this DB.
I have an FC in which I need to perform an action where I need the data from the a UDT.
I have to call this FC several times.
Call FC 1 with input data from the first UDT
Call FC 1 with input data from the second UDT
Call FC 1 with input data from the ... UDT
Call FC 1 with input data from the last UDT
Inside the FC I created a tempory off the type UDT.
Note: all the time I am talking about the same UDT nr. (So the data is always the same)
As input to the FC I want an any pointer to the data that is used that call.
Now I need to find a way to use this any pointer to copy data from the DB to the temporary UDT inside the FC. How can I do this?
Why I want this:
1 - The any pointer is very readable at the call. (outside the FC)
2 - The temporary bits/bytes have nice readable names. (inside the FC)