Solved

A Loop for a Type

Posted on 2003-12-05
3
260 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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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…

803 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