Search found 51 matches

by stefan.ungemach
Mon Jul 17, 2023 8:24 am
Forum: Product
Topic: How to display a modal dialogwindow from XPorted VO Code?
Replies: 4
Views: 1452

How to display a modal dialogwindow from XPorted VO Code?

<t>Robert,<br/>
<br/>
the PostInit is called. The window gets displayed as well (which I can prove both by the debugger and by commenting the last line here:<br/>
<br/>
oDlg := KOBMsgOptionBox{ oWin }<br/>
oDlg:Caption := cCaption<br/>
oDlg:TextZeilen := aMsg<br/>
oDlg:ID ...
by stefan.ungemach
Fri Jul 14, 2023 9:55 am
Forum: Product
Topic: How to display a modal dialogwindow from XPorted VO Code?
Replies: 4
Views: 1452

How to display a modal dialogwindow from XPorted VO Code?

<r>I have a simple modal window which inherited from a DialogWIndow in VO code. The modal behaviour comes from the constructor:<br/>
<br/>
<SIZE size="85"><s>[size=85]</s>CLASS KOBOptionBox_vo INHERIT DIALOGWINDOW <br/>
CONSTRUCTOR(oParent,uExtra) <br/>
LOCAL DIM aBrushes[1] AS OBJECT<br/>
<br ...
by stefan.ungemach
Wed May 17, 2023 11:22 am
Forum: Product
Topic: _Hex function (VO28Run)
Replies: 2
Views: 1288

_Hex function (VO28Run)

Robert,

thanks for explaining. You're right, commenting out should do no harm.

CU Stefan
by stefan.ungemach
Wed May 17, 2023 10:29 am
Forum: Product
Topic: _Hex function (VO28Run)
Replies: 2
Views: 1288

_Hex function (VO28Run)

<r>Hi all,<br/>
<br/>
it seems that the VO28Run function _Hex isn't implemented yet. Does anyone have a suggestion how to write <COLOR color="red"><s>[color=red]</s>this part of my code<e>[/color]</e></COLOR> (I've posted the whole entity for better understanding of what I want do do) VO code ...
by stefan.ungemach
Wed May 17, 2023 9:49 am
Forum: Product
Topic: Byte PTR
Replies: 3
Views: 1581

Byte PTR

<r>Dick, Robert,<br/>
<br/>
thanks, but both examples don't even compile (the Parser throws XS9002 unexpected input ')'). <br/>
<br/>
What finally compiles is this (based on Roberts suggestion):<br/>
<br/>
pBytes := BYTE[]{dwBufSize}<br/>
ACE.ADSGetRecord(hTbl, pBytes, @dwBufSize)<br/>
System ...
by stefan.ungemach
Mon May 08, 2023 2:58 pm
Forum: Product
Topic: Byte PTR
Replies: 3
Views: 1581

Byte PTR

<r>Hi all,<br/>
<br/>
I have some code to be migrated from VO to X# which simulates kind of a low-level wildseek with ADS functionality.<br/>
<br/>
There is a variable<br/>
<br/>
<B><s>[b]</s>LOCAL pR as Byte PTR<e>[/b]</e></B><br/>
<br/>
which is at some point calculated from another pointer (it ...
by stefan.ungemach
Thu Mar 23, 2023 8:47 am
Forum: Product
Topic: Possible improvement for OrderListAdd in XSharp.RDD
Replies: 1
Views: 1348

Possible improvement for OrderListAdd in XSharp.RDD

<r>A collegue of mine has pointed out an issue in OrderListAdd() / ADSIndex.prg:<br/>
<br/>
If the result of ACE.ADSOpenIndex() is ACE.AE_INDEX_ALREADY_OPEN (5065) in line 481 the logic checks all open indices against the desired one. If there is a hit self:Index is set correctly and the surrounding ...
by stefan.ungemach
Sat Mar 11, 2023 7:12 am
Forum: Product
Topic: Overwriting hidden methods: X# vs VO
Replies: 4
Views: 1839

Overwriting hidden methods: X# vs VO

Thanks for clarifying. Unfortunately this special construct is Part of one of our most used design patterns which means that we should probably remote all our "hidden" Statements in Vo before continuing the migration...
by stefan.ungemach
Fri Mar 10, 2023 12:21 pm
Forum: Product
Topic: Overwriting hidden methods: X# vs VO
Replies: 4
Views: 1839

Overwriting hidden methods: X# vs VO

<r>The following Code<br/>
<br/>
class MySuperClass<br/>
constructor<br/>
self:_setup()<br/>
hidden method _setup()<br/>
<COLOR color="red"><s>[color=red]</s>Safedebout32("mysuperclass",classname(self))<e>[/color]</e></COLOR><br/>
return<br/>
end class<br/>
<br/>
class MySubClass inherit ...
by stefan.ungemach
Thu Mar 02, 2023 8:16 pm
Forum: Product
Topic: (Still) confused with WORD PTR, PTR/PSZ and strings - how to avoid XS9068?
Replies: 5
Views: 2096

(Still) confused with WORD PTR, PTR/PSZ and strings - how to avoid XS9068?

<r>Hi Chris,<br/>
<br/>
maybe I don't need all that stuff which mostly comes from our own UnicodeString class. In X# a string is a set of Unicode chars, in VO it was Ansi (right?). So if I want i.e. to upper a Unicode string I can just call upper( cString ), right? I also suppose that all the ...