6/3/2014 4:31 AM | |
Joined: 2/21/2014 Last visit: 10/10/2024 Posts: 2 Rating: (0) |
all, I am using a db of 300 bool "lines" Can someone help me build a pointer to indirectly address say line 150? |
6/3/2014 1:56 PM | |
Joined: 1/28/2009 Last visit: 10/26/2024 Posts: 6852 Rating: (1365) |
It is easier to develop a set code in SCL and reach to a result.In STL,it is possible but it requires higher level of programming to perform the task.As you can see in the followings, you have option of using a constant INT or a variable one #ty to access to a point in DB. If you still instersted to physical address, it is not difficult to find "dbx2.0" is referring to which cell inside an array. "Data_block_1".test[5]:= 1; "Data_block_1".test[#ty]:= 1; To compare both solutions, read 2nd discussion here: Selection of proper programming LanguageI hope this helps,Hamid Hosseini |
Last edited by: hdhosseini at: 6/3/2014 1:57 PM |
|
This contribution was helpful to1 thankful Users |
Follow us on