Page 3 of 7
Nuovo progetto
Posted: Sun Oct 30, 2022 4:19 pm
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 (12.45 KiB) Viewed 1552 times
Nuovo progetto
Posted: Sun Oct 30, 2022 6:50 pm
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
Nuovo progetto
Posted: Sun Oct 30, 2022 9:49 pm
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.
Nuovo progetto
Posted: Sun Oct 30, 2022 10:55 pm
by Gfb22
Sorry...
I didn't check the Google translation: "Cable" is for Ca Visual Object 2.8 Sp3 ... (VO)...
Nuovo progetto
Posted: Mon Oct 31, 2022 6:30 am
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).
Error xs0246 solved! New error XS9002
Posted: Tue Nov 01, 2022 10:35 am
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!
Error xs0246 solved! New error XS9002
Posted: Tue Nov 01, 2022 10:51 am
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 ) ;
)
Error xs0246 solved! New error XS9002
Posted: Tue Nov 01, 2022 2:36 pm
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!
Error xs0246 solved! New error XS9002
Posted: Tue Nov 01, 2022 3:16 pm
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.
Error xs0246 solved! New error XS9002
Posted: Tue Nov 01, 2022 6:05 pm
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!