Code Complete Won't work.

  1. 2 months ago

    Richard A

    Mar 14 Pre-Release Testers, Xojo Pro Puerto Vallarta Mexico

    I have a Class object that is global, yet the code complete doesn't work. I manually typed in one property but if I hit tab it will not show me all of the class properties???

  2. Norman P

    Mar 14 Pre-Release Testers, Xojo Pro Alberta Canada

    need more details that this to be able to guess whats up

    What code are you trying to type in ?
    Whats the class name ?
    Are you trying to use a class instance or the class itself ? (you can only use shared if you refer to the class itself)

    here I quickly created a new Class, Class1, added some properties
    Then in the Window1 open event I put

    Dim c As Class1
    
    c.<tab>

    and all the public properties I've defined are shown

  3. Richard A

    Mar 14 Pre-Release Testers, Xojo Pro Puerto Vallarta Mexico

    Using instance, class is clRegPrice

    Instance is

    RegPrice = New mdGlobals.clRegPrice (mdGlobals is a module)

    In session Open

    Typing RegPrice. <<< No autocomplete, if I type property in it works as expected when run.

    Scope on all properties is public. This is the same class you helped me with yesterday.

  4. Norman P

    Mar 14 Pre-Release Testers, Xojo Pro Alberta Canada
    Edited 2 months ago

    let me whip up a little local sample and see if I can reproduce this

    edit : are you just trying to set the property value in the instance ?

    ah interesting - looks like theres a bug - try clicking in the code editor right after the period
    here that seems to tweak things and then autocomplete shows the properties

    I can report it but I cant fix it :(

  5. Richard A

    Mar 14 Pre-Release Testers, Xojo Pro Puerto Vallarta Mexico

    Clicking did nothing, and was trying to read the property.

  6. Norman P

    Mar 14 Pre-Release Testers, Xojo Pro Alberta Canada

    well ... what does the exact line of code you're having issues with look like ?

    if you write

    regprice.<tab>

    this is where I saw I needed to click and the n the autocomplete list showed

    but here my property is cleverly named "someProperty" and its an integer
    and if I write

    dim i as integer = regprice.<tab>

    the autocomplete list showed without clicking

    I'm using 2018r4 on macOS 10.12

  7. Beatrix W

    Mar 14 Pre-Release Testers Europe (Germany)

    As it was mentioned again and again: You type, autocomplete works. You type, autocomplete doesn't work. You type, autocomplete works again. Not reproducible. Trick with .. also doesn't work.

  8. Alexander v

    Mar 15 Europe (Houten, The Netherland...

    It definitely doesn't work in Win10. Only after typing TWO dots, backspacing to one.

  9. Richard A

    Mar 15 Pre-Release Testers, Xojo Pro Puerto Vallarta Mexico

    I'm using I'm using 2018r4 on macOS 10.14 and I can't get it to work at all.

  10. Richard A

    Mar 16 Pre-Release Testers, Xojo Pro Puerto Vallarta Mexico

    Just tried the beta, same problem.

  11. Derk J

    Mar 17 Pre-Release Testers, Xojo Pro

    @Norman P well ... what does the exact line of code you're having issues with look like ?

    if you write

    regprice.<tab>

    this is where I saw I needed to click and the n the autocomplete list showed

    but here my property is cleverly named "someProperty" and its an integer
    and if I write

    dim i as integer = regprice.<tab>

    the autocomplete list showed without clicking

    I'm using 2018r4 on macOS 10.12

    thats amazing it’s working for you but for all my macs and windows it’s not working?

    2018r4 is where the bug is in.

    If mymodule.[tab]

    Not working, requires a mouse click at the end of line to refocus or double dot and backspace to be able to use tab.

or Sign Up to reply!