RE: Setting a Different DataField for each Label2()



My own reply.
Sorry, I found the error. Some Elem names at the Database had a blank space
right after the last character. It was invisible, of course, unless I placed
the pointer on it. Works fine now.

"Guillermo" wrote:

> Dim FLDS(6) As String
> Dim Elem As Integer
> [I load FLDS String Elements from DB, no problem]
>
> Private Sub Label1_Change(Index As Integer)
> For Elem = 1 To 6
> Label2(Elem).DataField = FLDS(Elem) [ I get Error 545 here]
> Next Elem
> [But if I set the DataField property MANUALLY, with the SAME String, it
> works fine.
> Why?. Thanks.Guillermo.]
.



Relevant Pages

  • Re: HTML generieren in Java
    ... private static class Elem { ... Elem(String name, Object... ... public String toString() { ... static Attr a{ ...
    (de.comp.lang.java)
  • Re: hash, key, problem...
    ... hash.each do |elem| ... puts elem.join ... You can also of course get the string as: ... Katja ...
    (comp.lang.ruby)