[Gambas-user] XMLReader

Charlie karl.reinl at ...9...
Sun Nov 21 15:21:43 CET 2004


Daniel Campos schrieb:

>It is an strange bug... By now you can create the object each time
>you're going to use it:
>
>DIM MyDepth AS Integer
>  DIM Xml AS XmlReader
>  DIM nI AS Integer
>  FOR nI = 1 TO 4
>    TxtData.Text = TxtData.Text & "\n Loop = " & nI & "\n"
>    Xml=NEW XmlReader
>
>  
>
Salut Daniel,

I observed the following:
 while debuging , if you enter into PUBLIC SUB Button1_Click().

If code is like

PUBLIC SUB Button1_Click()
  DIM MyDepth AS Integer
  DIM Xml AS XmlReader
  DIM nI AS Integer
  FOR nI = 1 TO 4
    TxtData.Text = TxtData.Text & "\n Loop = " & nI & "\n"

   xml= NEW XmlReader


first stop is at  : FOR nI = 1 TO 4

at the old version

PUBLIC SUB Button1_Click()
  DIM MyDepth AS Integer
  DIM Xml AS NEW XmlReader
  DIM nI AS Integer
  FOR nI = 1 TO 4
    TxtData.Text = TxtData.Text & "\n Loop = " & nI & "\n"


first stop is at  :  DIM Xml AS NEW XmlReader

Normaly, while debugging you never can stay at a declaration.

Amicalment
Charlie









More information about the User mailing list