Search found 51 matches
- Mon Feb 27, 2023 8:53 pm
- Forum: Product
- Topic: Method calls in Codeblocks
- Replies: 2
- Views: 1289
Method calls in Codeblocks
Thank you - that was missing in one of my projects. Still need more routine... 
- Mon Feb 27, 2023 8:51 pm
- Forum: Product
- Topic: DO/CASE limits?
- Replies: 8
- Views: 2410
DO/CASE limits?
<t>Is there a known limit to the number of CASEs in a DO/CASE construct? I have a simple construct like<br/>
<br/>
DO CASE<br/>
CASE symField == #A4HHST<br/>
symClass := #HHST<br/>
(...)<br/>
ENDCASE<br/>
where the compiler crashes if I have more than 668 CASE conditions (reproducable). Since ...
<br/>
DO CASE<br/>
CASE symField == #A4HHST<br/>
symClass := #HHST<br/>
(...)<br/>
ENDCASE<br/>
where the compiler crashes if I have more than 668 CASE conditions (reproducable). Since ...
- Mon Feb 27, 2023 8:20 pm
- Forum: Product
- Topic: Method calls in Codeblocks
- Replies: 2
- Views: 1289
Method calls in Codeblocks
<r>I hope that this is a trivial problem:<br/>
<br/>
I declare a simple codeblock like this<br/>
<br/>
aInfo[2] := {#PERSJAHR, { { {|oSrv| oSrv:FG( #PZZADNR ) }, 1, {|Jahr, AGS, PK| PK }, .f. }}}<br/>
<br/>
which will receive a class instance that has a FG method. However, the compiler throws<br ...
<br/>
I declare a simple codeblock like this<br/>
<br/>
aInfo[2] := {#PERSJAHR, { { {|oSrv| oSrv:FG( #PZZADNR ) }, 1, {|Jahr, AGS, PK| PK }, .f. }}}<br/>
<br/>
which will receive a class instance that has a FG method. However, the compiler throws<br ...
- Wed Feb 22, 2023 1:47 pm
- Forum: Product
- Topic: DEFINE/#ifdef seems to be ignored in X#
- Replies: 8
- Views: 3871
DEFINE/#ifdef seems to be ignored in X#
<r>There seems to be another issue. The scope of #DEFINE is limited to its prg. In VO it's not, so you cal set a switch for a whole app at one single point. Thus, a global compiler switch in former VO code works no more and requires deep analysis of <B><s>[b]</s>all<e>[/b]</e></B> the transported ...
- Tue Feb 21, 2023 5:43 pm
- Forum: Product
- Topic: Sendclass substitute
- Replies: 11
- Views: 4715
Sendclass substitute
<r>Hi Chris,<br/>
<br/>
in VO passing a custoim FileSpec didn't suffice to do the job since there were some aditional file()-calls within the SDK dbServer code. In XSharp I'm actually trying to pass the custom FileSpec as a first parameter, which of course compiles because at a first glance I didn't ...
<br/>
in VO passing a custoim FileSpec didn't suffice to do the job since there were some aditional file()-calls within the SDK dbServer code. In XSharp I'm actually trying to pass the custom FileSpec as a first parameter, which of course compiles because at a first glance I didn't ...
- Tue Feb 21, 2023 2:26 pm
- Forum: Product
- Topic: Sendclass substitute
- Replies: 11
- Views: 4715
Sendclass substitute
<t>Thank you - especially - Array2ObjectArray is a very useful hint which suits me for many other occasions.<br/>
<br/>
The reason why I need the dirty trick (I'm telling this because maybe there is a better approach):<br/>
<br/>
We need to stick to DBFs due to a reporting software which we mußte ...
<br/>
The reason why I need the dirty trick (I'm telling this because maybe there is a better approach):<br/>
<br/>
We need to stick to DBFs due to a reporting software which we mußte ...
- Tue Feb 21, 2023 12:01 pm
- Forum: Product
- Topic: Sendclass substitute
- Replies: 11
- Views: 4715
Sendclass substitute
<r>In my <COLOR color="green"><s>[color=green]</s>VO Code<e>[/color]</e></COLOR> I use Sendclass to modify a SDK constructor's behaviour. This looks like this and worked fine for more than a decade:<br/>
<br/>
<COLOR color="green"><s>[color=green]</s>(this is part of my dbServer_Subclass INit ...
<br/>
<COLOR color="green"><s>[color=green]</s>(this is part of my dbServer_Subclass INit ...
- Mon Feb 20, 2023 2:21 pm
- Forum: Product
- Topic: Subclassing Error
- Replies: 2
- Views: 1352
Subclassing Error
I'm sorry, but it seems to be an error in my callstack. If I write a 5-Liner it works; looks like it does in my code as well but logs a misleading call stack on the debug console. Please close the case.
- Mon Feb 20, 2023 11:41 am
- Forum: Product
- Topic: Subclassing Error
- Replies: 2
- Views: 1352
Subclassing Error
<r>Does anyone have an idea why even a very simple instantiation of an Error subclass crashes in my code?<br/>
<br/>
class ADSError inherit Error<br/>
method @@Throw() as void pascal<br/>
local oCB as Codeblock<br/>
safedebout32( self:SubCode, self:FuncSym, self:CallFuncSym )<br/>
if !empty ...
<br/>
class ADSError inherit Error<br/>
method @@Throw() as void pascal<br/>
local oCB as Codeblock<br/>
safedebout32( self:SubCode, self:FuncSym, self:CallFuncSym )<br/>
if !empty ...
- Mon Feb 20, 2023 9:55 am
- Forum: Product
- Topic: DEFINE/#ifdef seems to be ignored in X#
- Replies: 8
- Views: 3871
DEFINE/#ifdef seems to be ignored in X#
Robert,
dank je wel!
dank je wel!

