V5.00 - Added Text Box not global ?

Discussion in 'Bug Reports' started by dpriem, May 24, 2007.

  1. dpriem

    dpriem Member Licensed User

    Hello,
    I use a lot of "addtextbox" instructions in my application and it does not work anymore in V5 like it was in V4.
    Everything looks like the dynamically created Text boxes (or other items) are not considered as GLOBALS anymore (they definitely were in V4).
    In other words, a textbox object created with "addtextbox" in "sub mysub1" is not accessible in "sub mysub2".
    By the way, compilation gives me errors if I check the new option "check for unassigned / unused variables" in the "tools" menu.
    This is very annoying.
    Any idea ?
     
    Last edited: May 24, 2007
  2. Cableguy

    Cableguy Expert Licensed User

    What do you mean with globals?

    I ported my Image Pairs Games from v4 to v5, and after correcting a few minor error, in my case some ")" were missing, it runned correctly and faster....All the game controls, panel,image holder and buttons were created in runtime...
    This means that addtexbox funcions correctly...
     
  3. dpriem

    dpriem Member Licensed User

    Updated first post to explain "GLOBALS"
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    All controls are global.
    Can you post some code that shows the problem?
     
  5. dpriem

    dpriem Member Licensed User

    Oups,
    Trying to write a very small code showing the problem, I found out the problem is not what I first thought !
    In my application, I assign and retrieve the value of the textbox simply as "MyTextBox" without any problem in V4.
    Apparently, in V5, I'll need to address it as "MyTextBox.Text" to make it work.
    CAn you confirm this, or is there a shorter way to solve this issue ?
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    That was my guess.
    There are no default properties in version 5.00.
     
  7. dpriem

    dpriem Member Licensed User

    Thanks and sorry for the trouble !
     
Loading...