Welcome, Guest
Username: Password: Remember me
Qui si parla italiano

TOPIC:

Nuovo progetto 30 Oct 2022 17:19 #24295

  • Gfb22
  • Gfb22's Avatar
  • Topic Author


  • Posts: 22
  • Hello Karl, thank you.
    Sub_ProgDial is not part of X # but it is present in my apps in CABLE 2.8 which I want to bring into X #.
    I used it, taking it from an example of CABLE, to host a progress bar and moves the bar during the creation of the indexes of the archives, as in the example.
    If Sub_ProgDial cannot be brought into X # I have to find another way to display the progress bars ...
    Thank you for your answer :-)
    Attachments:

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

    Last edit: by Gfb22.

    Nuovo progetto 30 Oct 2022 19:50 #24296

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • Hello Karl, thank you.
    Sub_ProgDial is not part of X # but it is present in my apps in CABLE 2.8 which I want to bring into X #.
    I used it, taking it from an example of CABLE, to host a progress bar and moves the bar during the creation of the indexes of the archives, as in the example.
    If Sub_ProgDial cannot be brought into X # I have to find another way to display the progress bars ...
    Thank you for your answer :-)

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

    Nuovo progetto 30 Oct 2022 22:49 #24297

    • FFF
    • FFF's Avatar


  • Posts: 1377
  • Gian,
    with due respect, you don't give us much to help you. I have not the slightest idea, what "Cable 2.8" is, a quick google got me no link what might hide there...
    But if it worked in/with Vo, it should work with X#. If it is Vo-code, you may transport it, like any other code. If not, you have to tell us more.
    Regards
    Karl (X# 2.13.0.6; Xide 1.32; W8.1/64 German)

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

    Nuovo progetto 30 Oct 2022 23:55 #24298

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • Sorry...
    I didn't check the Google translation: "Cable" is for Ca Visual Object 2.8 Sp3 ... (VO)...

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

    Nuovo progetto 31 Oct 2022 07:30 #24299

    • Chris
    • Chris's Avatar


  • Posts: 3649
  • Hi Gian,

    It will work, but you need to compile it in X# first. Where is this class? In a separate library? If yes, you must port also this library, compile it in X# and add a reference to it (the dll).
    XSharp Development Team
    chris(at)xsharp.eu

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

    Error xs0246 solved! New error XS9002 01 Nov 2022 11:35 #24305

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • Hi Chris.
    1) The error xs0246 ("he type or namespace name 'type / namespace' could not be found") referring to the definition of the class of a DIALOGWINDOW was due to a comment inserted before the declaration: in VO TEXTBLOCK Statement it refers only to entity in which it is declared. Brought to X # it 'hides' everything in the module: I removed the TEXTBLOCK and now the missing class is recognized (could it be an xPorter 'error'?).
    2) error XS9002: Parser: unexpected input 'ON' (is the only error left in my first app !!)
    It is caused by an INDEX ON instance ...
    Could it be missing its definition in the header file for the X# preprocessor? I tried to disable the standard header (-nostddefs) and the compiler gives me other XS9002 errors but not the same error ...
    How can I solve?
    Thank you!

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

    Error xs0246 solved! New error XS9002 01 Nov 2022 11:51 #24306

    • Chris
    • Chris's Avatar


  • Posts: 3649
  • Hi Gian,

    1. Yeah, this looks like a problem in the VOXporter, it should be replacing the TEXTBLOCK with block comments, but apparently this does not always work. Will look into this.

    2. The INDEX ON command does exist in the preprocessor definitions, so it should work. What is the exact syntax that you are using?

    The directive is defined as:

    #command INDEX ON <key> TO <(file)> [<u: UNIQUE>]                       ;
          => dbCreateIndex(                                                 ;
                            <(file)>, <"key">, <{key}>,                     ;
                            IIF( <.u.>, TRUE, NIL )                           ;
                          )
    XSharp Development Team
    chris(at)xsharp.eu

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

    Error xs0246 solved! New error XS9002 01 Nov 2022 15:36 #24311

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • ...Here is the line that gives the error (in VO it works):
    INDEX ON (AmmInd->CHIAVE) TAG (AllTrim(AmmInd->NOMEORD)) TO (cNomeCDX) EVAL {||oSelf:DOProgress( 2 )} EVERY 10
    Later I try to change the syntax according to your directions.
    Thank you!

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

    Error xs0246 solved! New error XS9002 01 Nov 2022 16:16 #24313

    • Chris
    • Chris's Avatar


  • Posts: 3649
  • Hi Gian,

    OK, thanks, indeed the TAG, EVAL and EVERY clauses are not supported currently in the directive, will log this so it will be adjusted.
    For now, you may want to use the DBCreateIndex() function instead, for creating the indexes.
    XSharp Development Team
    chris(at)xsharp.eu

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

    Error xs0246 solved! New error XS9002 01 Nov 2022 19:05 #24315

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • Hi,
    for now I can do differently and not use the progressbar and so I dedicate myself to improving other parts of the app (graphics, reports, etc.).
    With DBCreateIndex () it doesn't seem to me it is possible to create more orders of the same CDX index nor to move the progress bar.
    In the xSharp documentation (www.xsharp.eu/help/command_index.html) it appeared that the TAG, EVAL and EVERY clauses were supported ...
    Thanks for your invaluable support!

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

    Error xs0246 solved! New error XS9002 01 Nov 2022 23:57 #24316

    • Chris
    • Chris's Avatar


  • Posts: 3649
  • Hi Gian,

    Ah right, you need to use a combination of OrdCondSet() and OrdCreate() for that.

    I did an experiment, took the UDC from VO, adjusted it a little bit and it seems to work. If you'd like to give it a try, add this definition in the beginning of your prg:
    #command INDEX ON <key>     ;
         [TAG <order>]  ;
         [TO <file>]  ;
         [FOR <fo>]     ;
         [<all:ALL>]    ;
         [WHILE <wh>]   ;
         [NEXT <nx>]    ;
         [RECORD <rec>] ;
         [<rs:REST>]    ;
         [EVAL <ev>]    ;
         [EVERY <evr>]  ;
         [<u:UNIQUE>]   ;
         [<asd:ASCENDING>]      ;
         [<dsd:DESCENDING>]     ;
         [<lCur:USECURRENT>]    ;
         [<lAdd:ADDITIVE>]      ;
         [<lCus:CUSTOM>]        ;
         [<lNop:NOOPTIMIZE>]    ;
            ;
        => OrdCondSet( <fo>, <{fo}>,  ;
         [<.all.>],     ;
         <{wh}>,        ;
         <{ev}>, <evr>, ;
         RecNo(), <nx>, <rec>,  ;
         [<.rs.>], [<.dsd.>],   ;
         <.lAdd.>, [<.lCur.>], [<.lCus.>], [<.lNop.>] )      ;
        ;;  ;
           OrdCreate(<(file)>,<(order)>,<(key)>,,IF(<.u.>,.T., NIL))

    and then you can call it with

    INDEX ON CHIAVE TAG CHIAVE TO filename.cdx EVAL {||oSelf:DOProgress( 2 )} EVERY 10

    The above directive will be cleaned up and will be properly added to the standard X# macros in one of the next builds.

    .
    XSharp Development Team
    chris(at)xsharp.eu

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

    Last edit: by Chris.

    Error XS9002 solved too: thanks Chris! And now: CATO3CNT.DLL 03 Nov 2022 09:25 #24325

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • By adding the #command definition suggested by Chris XIDE compiles without errors.
    The app is loaded regularly but when a DATABROWSER is loaded it gives the error "Cannot load library: CATO3CNT.DLL / FuncSym: DATABROWSER: LOADCONTAINERDLL"
    Which DLL X # should be loaded into the library to avoid this runtime error?
    Thank you!

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

    Error XS9002 solved too: thanks Chris! And now: CATO3CNT.DLL 03 Nov 2022 09:28 #24326

    • FFF
    • FFF's Avatar


  • Posts: 1377
  • You have to copy all of the Cato* DLLs to your bin folder
    Regards
    Karl (X# 2.13.0.6; Xide 1.32; W8.1/64 German)

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

    Error XS9002 solved too: thanks Chris! And now: CATO3CNT.DLL 03 Nov 2022 09:30 #24327

    • wriedmann
    • wriedmann's Avatar


  • Posts: 3185
  • Hi Gian Ferruccio,
    there is no DLL to add to your project, you have only to make sure that this DLL is in the bin folder of your application.
    The VO GUI classes loads these DLLs dynamically (as VO does).
    It may be the best to copy all the CATO*.dll from your VO bin folder there.
    Wolfgang
    Wolfgang Riedmann
    Meran, South Tyrol, Italy

    www.riedmann.it - docs.xsharp.it

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

    Everything works :-) 03 Nov 2022 11:36 #24328

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • Well: I thought the Cato * .DDLs were not compatible with X # and I hadn't looked in C: \ Program Files (x86) \ XSharp \ Redist.
    Now . Thank you!
    Next step: switch to using bBrowse ... see you soon :-)
    Attachments:

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

    Everything works :-) 04 Nov 2022 10:06 #24339

    • Chris
    • Chris's Avatar


  • Posts: 3649
  • Hi Gian,

    Glad to see you're making progress! For bBrowser, you'll need the X# version from www.bbrowser.net/index.php/en/
    XSharp Development Team
    chris(at)xsharp.eu

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

    Everything works :-) 04 Nov 2022 15:08 #24340

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • Yes: I bought bBrowser.NET 4 (XSharp Edition).
    I searched the documentation on line and the help and did some testing but, with my limited knowledge, I was unable to import the examples into XIDE to test and learn from them.
    There is other documentation explaining how to get started?
    Surely these are simple procedures but for me, now...
    :-)

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

    Everything works :-) 04 Nov 2022 17:12 #24341

    • Chris
    • Chris's Avatar


  • Posts: 3649
  • Hi Gian,

    In the bBrowser installation folder, there must be a XIDE folder, right? Below it there must be a "samples: folder, please copy htis folder somewhere outside the Program Files fodler structure, then open it, and it must contain a "bBrowser.NET 4 Samples (XSharp Edition).xiproj" file, or something similar. Double click that file, select XIDE.exe as the program to open it and now it should open in XIDE.

    There's also one more step needed, in order to put bBrowser in the XIDE toolbox. Please search for a file cavowed.inf under your bBrowser installation folder, then copy it in C:\XIDE\Config (or in which folder you have installed XIDE), restart XIDE and now it should be available in the toolbox.
    XSharp Development Team
    chris(at)xsharp.eu

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

    bBrowse: and now? 07 Nov 2022 10:10 #24347

    • Gfb22
    • Gfb22's Avatar
    • Topic Author


  • Posts: 22
  • Hi Chris,
    ...and now?
    I followed your instructions and also tried to rebuild project but, when I quit XIDE and then restart nothing happens and I can't even reopen the example project ...
    (... I have no hurry because in the meantime I have many other improvements to do)...
    Thank you
    Attachments:

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

    bBrowse: and now? 07 Nov 2022 16:52 #24350

    • Chris
    • Chris's Avatar


  • Posts: 3649
  • HI Gian,

    Can you please give some more information, what do you mean nothing happens, and why can't you reopen the project, are you getting an error or similar?
    XSharp Development Team
    chris(at)xsharp.eu

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

    Moderators: wriedmann