View previous topic :: View next topic
|
Author |
Message |
chan2004
New User
Joined: 28 Mar 2007 Posts: 16 Location: India
|
|
|
|
Hi,
I have a module A which calls a module B
In module B, I populate a controlled array and base the address of it to a pointer. this ponter is then passed to the module A
In module A, I create another ctl array of same structure. I want to base the ptr received from module B from the second element of the array declared in module A.
How can I do this?
I tried addr function, but PL1 doesn't allow it to be used as a pseudo variable
thanks |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
What you are trying to achieve is unclear.
Quote: |
I populate a controlled array and base the address of it to a pointer. |
The ALLOCATE of the controlled array gives you the pointer value. You don't base the address to a pointer.
Quote: |
I want to base the ptr received from module B from the second element of the array declared in module A. |
Again, you don't base the ptr received. How do you receive the pointer? Have you passed a pointer variable from A for B to update?
In any case, this pointer can be used in A to address a structure.
Regards,
Garry. |
|
Back to top |
|
|
|