Solved

A Loop for a Type

Posted on 2003-12-05
3
266 Views
Last Modified: 2010-04-17
Hi,

is this possible to use a Loop to assign values to each field of a Type

ex.:
Type tScreen
     Height as String
     Width as String
     Price as Double
     Color as String
end Type

...something like...

For each "Field" of the Type
    This field = This value
next "Field"

Thanks for all.
0
Comment
Question by:PapaOne
3 Comments
 
LVL 15

Expert Comment

by:SRigney
ID: 9883084
Not sure the language.

In vb you can use
Dim ctl As Control
For Each ctl in Controls
   Select Case TypeName(ctl)
      Case "TextBox":
         ctl.Text = textvalue
      Case "ComboBox":
         ctl.ListItem = listitemindex
   End Select
Next
0
 
LVL 10

Accepted Solution

by:
D_M_D earned 50 total points
ID: 9883202
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change the background and font colors in Notepad++ 5 110
ASP/VB email question 4 46
Infrastructure development vs software development 3 60
learn programming 8 36
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question