Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CopyTo method from stack to complicated variable

Status
Not open for further replies.

WomanPro

Programmer
Nov 1, 2012
180
GR
Hello I have a question and a kind of problem somehow!!!
Public Structure VariableNamesAndValues
Public Name As String
Public Chckr As Checker
End Structure
Dim declarationChckrs(RestCntDices) As VariableNamesAndValues

Well I have stack named MyStack includes Checkers and the what I want to do is to copy all the elements of the stack to
declarationChckrs. I thought about using CopyTo method like this PcCheckerGates(ii).stack.CopyTo(declarationChckrs, 0)
but problem... because I did count that declarationChckrs is an array that each element is a string and a checker, so I got error, is there a way to do that only using the CopyTo method of the stack? Or should I have to make it element by element??? Any suggestions please????? Any help will be much appreciated.

Thank you so much
in advanced.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top