Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi from below code I wish to convert the foreach loop in vc++
Does anybody can help me?

C#
TableLayoutPanel SuplrTblPnl = new TableLayoutPanel();
                if (C1 == 1) SuplrTblPnl = tableLayoutPanel1;
                foreach (Control InvConl in SuplrTblPnl.Controls) {

}
                {

The first 2 line already converted
C#
TableLayoutPanel^ SuplrTblPnl = gcnew TableLayoutPanel();
 if (C1 == 1) SuplrTblPnl = tableLayoutPanel1;


But while I convert the third line like the below
foreach (Control^ InvConl in SuplrTblPnl->Controls) {
facing the error InvConl is undeclared Identifier


Thank you.
Posted

1 solution

for each ...........found the solution by space
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900