Search found 6 matches
- Mon Jul 11, 2022 10:53 am
- Forum: Windows: GUI, COM/OLE/ActiveX
- Topic: Excel optional parameters not working
- Replies: 1
- Views: 21280
Excel optional parameters not working
Here's what I did and the resulting error: xls←⎕new 'OleClient' (⊂'ClassName' 'Excel.Application') xls.Workbooks.Add ⍬ wb ←xls.Workbooks[1] ⍝ wb.Protect (⊂'abc') ⍝ This works wb.Protect 'abc' 1 ⍝ Doesn't work, although it should DOMAIN ERROR: DISP_E_EXCEPTION (E_INVALIDARG) wb.Protect 'abc' 1 1 ⍝ Doe ...
- Tue Aug 10, 2021 2:35 pm
- Forum: Source Code Management
- Topic: How to use ]Link.Create beforeRead hook?
- Replies: 2
- Views: 83879
How to use ]Link.Create beforeRead hook?
Hi, I'm experimenting with ]Link and I'm trying to add a hook. Somehow, the following code doesn't work for me, so can anyone give a hint what I'm doing wrong? load←⎕ns'' load.beforeRead←{⎕this.called+←1 ⋄ 1} load.called←0 options←⎕ns'' options.beforeRead←'load.beforeRead' options ⎕SE.Link.Create 'ws ...
- Tue Aug 10, 2021 1:01 pm
- Forum: Object Oriented Programming
- Topic: Override of properties not working as expected
- Replies: 1
- Views: 22195
Override of properties not working as expected
Hi there! I've encountered a bug, which prohibits to access base properties, which have been overridden in subclasses. Example: :Class Base :field private m_test←2 :property test :access public overridable ∇ r←get r←m_test ∇ ∇ set args m_test←args.NewValue ∇ :endproperty :EndClass :Class Sub : Base : ...
- Fri Apr 16, 2021 7:25 pm
- Forum: Object Oriented Programming
- Topic: Override in inheritance chain
- Replies: 1
- Views: 14749
Override in inheritance chain
Hi, I have experienced some very unexpected and annoying behavior when dealing with an inheritance chain and a method that is supposed to be override in both subclasses. Here is a simple example: :class BC ∇ sayHello :access public overridable 'I'm the base class.' ∇ ∇ speak :access public sayHello ∇ ...
- Fri Jan 15, 2021 11:52 am
- Forum: Language
- Topic: Trapping in Dyalog APL v18.0
- Replies: 5
- Views: 9220
Re: Trapping in Dyalog APL v18.0
Hi there I'm talking to my colleagues about this as I am somewhat confused by what is going on. Please can you confirm the full revision numbers of the 17.1 and 18.0 interpreters, as well as the platform(s) your running on. Can you also confirm that ⎕ml needs to be 3, and that to reproduce the p ...
- Wed Jan 13, 2021 7:30 pm
- Forum: Language
- Topic: Trapping in Dyalog APL v18.0
- Replies: 5
- Views: 9220
Trapping in Dyalog APL v18.0
Hi everyone, I am migrating an app from Dyalog 17.1 to Dyalog 18.0 and have realized that trapping behavior has changed. I have prepared a code snippet that demonstrates the change. Calling method run results in an infinite loop in Dyalog 18.0, while it works as intended in Dyalog 17.1. It seems to ...