Solved

A Loop for a Type

Posted on 2003-12-05
3
239 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
Comment Utility
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
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countX 22 69
Exe program is not a valid Win 32 application 15 95
parentbit challenge 3 51
mapBully challenge 6 88
This article will show, step by step, how to integrate R code into a R Sweave document
This is about my first experience with programming Arduino.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now