ReportPro2, English and translation: now ok!

Forum dedicato ai programmatori di X# in lingua italiana – Italian language forum

Moderator: wriedmann

User avatar
Gfb22
Posts: 105
Joined: Sat Oct 08, 2022 7:43 pm
Location: Italy

Nuovo progetto

Post by Gfb22 »

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 :-)
Sub_ProgDial.jpg
Sub_ProgDial.jpg (12.45 KiB) Viewed 1588 times
gfb
User avatar
Gfb22
Posts: 105
Joined: Sat Oct 08, 2022 7:43 pm
Location: Italy

Nuovo progetto

Post by Gfb22 »

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 :-)
Sub_ProgDial.jpg
Sub_ProgDial.jpg
gfb
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Nuovo progetto

Post by FFF »

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
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Gfb22
Posts: 105
Joined: Sat Oct 08, 2022 7:43 pm
Location: Italy

Nuovo progetto

Post by Gfb22 »

Sorry...
I didn't check the Google translation: "Cable" is for Ca Visual Object 2.8 Sp3 ... (VO)...
gfb
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Nuovo progetto

Post by Chris »

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).
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Gfb22
Posts: 105
Joined: Sat Oct 08, 2022 7:43 pm
Location: Italy

Error xs0246 solved! New error XS9002

Post by Gfb22 »

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!
gfb
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Error xs0246 solved! New error XS9002

Post by Chris »

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:

Code: Select all

#command INDEX ON <key> TO <(file)> [<u: UNIQUE>]                       ;
      => dbCreateIndex(                                                 ;
                        <(file)>, <"key">, <{key}>,                     ;
                        IIF( <.u.>, TRUE, NIL )                           ;
                      )
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Gfb22
Posts: 105
Joined: Sat Oct 08, 2022 7:43 pm
Location: Italy

Error xs0246 solved! New error XS9002

Post by Gfb22 »

...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!
gfb
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Error xs0246 solved! New error XS9002

Post by Chris »

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.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Gfb22
Posts: 105
Joined: Sat Oct 08, 2022 7:43 pm
Location: Italy

Error xs0246 solved! New error XS9002

Post by Gfb22 »

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 (https://www.xsharp.eu/help/command_index.html) it appeared that the TAG, EVAL and EVERY clauses were supported ...
Thanks for your invaluable support!
gfb
Post Reply