Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Immediate window understanding X# syntax 09 Mar 2023 12:55 #25568

  • ic2
  • ic2's Avatar
  • Topic Author


  • Posts: 1662
  • I was looking forward to the immediate window understanding X# syntax from 2.15 onwards.
    I just installed 2.15 and tried this:
    Self:oDBEmails:Recno

    which gave me the error:

    error CS1061: 'IC2DbServer' does not contain a definition for 'Recno' and no accessible extension method 'Recno' accepting a first argument of type 'IC2DbServer' could be found (are you missing a using directive or an assembly reference?)

    Is there anything I can do to make this work? Or does this need to be fixed by you?

    Dick

    Please Log in or Create an account to join the conversation.

    Immediate window understanding X# syntax 09 Mar 2023 12:56 #25569

    • robert
    • robert's Avatar


  • Posts: 3588
  • Dick,
    Can you check:
    Tools/Options
    Debugging / XSharp Debugger
    Is "Enable Late Binding" enabled ?

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Immediate window understanding X# syntax 09 Mar 2023 14:37 #25570

    • ic2
    • ic2's Avatar
    • Topic Author


  • Posts: 1662
  • Hello Robert,

    There's no such option but that is possibly because in the meantime I reinstalled X# 2.14.

    See my other message.

    Dick

    Please Log in or Create an account to join the conversation.

    Immediate window understanding X# syntax 09 Mar 2023 14:39 #25571

    • robert
    • robert's Avatar


  • Posts: 3588
  • Dick
    This is a new option in 2.15.
    I see no other message.

    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    Immediate window understanding X# syntax 09 Mar 2023 16:16 #25573

    • ic2
    • ic2's Avatar
    • Topic Author


  • Posts: 1662
  • Hello Robert,

    It is in the subscriber forum, I realized that 2.15 is -yet- Fox only.

    www.xsharp.eu/forum/private-product/3410...fter-installing-2-15

    Dick

    Please Log in or Create an account to join the conversation.

    Immediate window understanding X# syntax 13 Mar 2023 14:55 #25612

    • ic2
    • ic2's Avatar
    • Topic Author


  • Posts: 1662
  • Hello Robert,

    I've quickly tried with 2.15 if the Immediate Window works with the settings you describe above and found this:

    When we set all Option to true except the first (Clipper compatible integer divisions and the last 2 (USe FLOAT/Zero based..) the program already crashes during debugging when the first (ADS) dbServer is opened. So even before accessing any Immediate Window.
    This seems solved when we only set the 3 "Immediate..." settings to true.

    However, we can still not find values from IW, here's a valid database/field (mydbf/myfield). See what we tried in bold and the errors following it. We tried a VO function in IW and this did work, regardless the capitalization. That's great, but inspecting fields of a dbf should work too.

    MyDBF:myfield
    error XS1061: 'usual' does not contain a definition for 'myfield' and no accessible extension method 'myfield' accepting a first argument of type 'usual' could be found (are you missing a using directive or an assembly reference?)
    MyDBF
    Evaluation requires a thread to run temporarily. Use the Watch window to perform the evaluation.
    MyDBF:fieldget(#myfield)
    error XS1061: 'usual' does not contain a definition for 'fieldget' and no accessible extension method 'fieldget' accepting a first argument of type 'usual' could be found (are you missing a using directive or an assembly reference?)


    Dick

    Please Log in or Create an account to join the conversation.

    Immediate window understanding X# syntax 13 Mar 2023 15:54 #25614

    • robert
    • robert's Avatar


  • Posts: 3588
  • Dick,

    We are testing a 2.16 internally. This should be fixed in 2.16.
    The problem is that MyDbf is not typed, so all code that you have typed is executed late-bound. In your version that has some problems.

    I am not sure what you mean with "the program crashes'. Which program crashes? The VS in which you are debugging?
    Your program? What is the error message?
    Do you have any watch expressions in the watch window? These could be the reason for an error when debugging. That should also be solved in 2.16.


    Robert
    XSharp Development Team
    The Netherlands

    Please Log in or Create an account to join the conversation.

    • Page:
    • 1