Array string value assigned to a structure

  • Thread starter Thread starter Sam Clark
  • Start date Start date
S

Sam Clark

The following code puts a structure location in an array field:
XrefArray(i) = "ArrayIn(i).Field" & RefText.Substring(NumStart + 1)
--------------------------------------------------------
Array(i).Field1 is the value now assigned to XrefArray(i)
--------------------------------------------------------
How can I now assign the value in this array and,
therefore, the value in ArrayIn(i).Field1 to another struct?

OutputArray(i).Field1 = XrefArray(i)

Or can I?
Thanks for any help.
 
Sam Clark said:
The following code puts a structure location in an array field:
XrefArray(i) = "ArrayIn(i).Field" & RefText.Substring(NumStart + 1)
--------------------------------------------------------
Array(i).Field1 is the value now assigned to XrefArray(i)
--------------------------------------------------------
How can I now assign the value in this array and,
therefore, the value in ArrayIn(i).Field1 to another struct?

OutputArray(i).Field1 = XrefArray(i)

Or can I?
Thanks for any help.

You can't. What are you trying to achieve? I'm sure there's another
solution.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
I started trying to answer this question and then I thought let me first
refresh, probably Armin has already done that.

This is one of them which I really have to investigage one time.

:-)

Cor
 
Thanks, I'm sure there is a better way.

I'm just trying to read cross-reference data from an .ini file into an
array and then use the array to hold the actual locations of the
referenced data.
Hard to explain, but it just seemed like a great idea on paper.
It appears it just doesn't work in practice. Back to the drawing board.
But that's what makes this job so interesting!

Thanks again for your help.
 
Back
Top