Dereferencing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Maes

    #16
    Re: Dereferencing

    Yes Cor, indeed "very Belgian".
    Sometimes I feel like a dinosaur (or an "old fart") in these High Tech Era:
    I've been programming for years, but still I haven't got an ICQ, I don't use
    (know) many of the acronyms (I that word is used in English) that many so
    eloquently use, .... So now and then I "dare" to ask what it means.

    CYA,

    Michael

    "Cor" <non@non.com> wrote in message
    news:uAvxgAv8DH A.2472@TK2MSFTN GP10.phx.gbl...
    | Hi Michael,
    |
    | Or maybe you are a Dutch speaker, because your name sounds very Belgian.
    |
    | LOL means Laugh On Line but when you are a Dutch speaker, then you know
    that
    | is the same as the dutch lol.
    |
    | Cor
    |
    |


    Comment

    • Michael Maes

      #17
      Re: Dereferencing

      That's an option too but, personaly, I prefer to use the Hashtable because
      then you only have to loop the control-collection once for each
      form-instance (filling the HT with all the controls).

      Michael

      "Zanna" <znt.fabio@virg ilio.it> wrote in message
      news:4TmXb.3120 83$_P.10757772@ news4.tin.it...
      | "Michael Maes" <michael@merlot .com> wrote in message
      |
      | <q>
      | Something like:
      | Dim txt As TextBox = DirectCast("txt " & someStringVaria ble, TextBox)
      |
      | This sadly won't work because a type of string cannot be casted to a
      | textbox.
      | The "txt" + someStringVaria ble concatenation would represent a valid name
      of
      | a textbox on the form.
      | </q>
      |
      | You can do a loop on Me.Controls and searching for the Item.Name = "txt" +
      | someStringVaria ble.
      | Than you can cast the item found to TextBox.
      |
      | --
      | Math Parser : http://www.neodatatype.net
      |
      |


      Comment

      Working...