Search found 440 matches
- Mon Sep 09, 2024 12:02 pm
- Forum: Microsoft.NET
- Topic: How to get a Byte Array ?
- Replies: 15
- Views: 66186
Re: How to get a Byte Array ?
Here is what I am using to make a byte array: ba←ByteArray bytes;⎕IO ⍝ Function to get a .Net byte array ⍝ bytes = numbers in the range of 0 to 255 ⍝ ba = .Net Byte[] ⎕USING∪←⊂'System,mscorlib.dll' ⋄ ⎕IO←0 ba←Array.CreateInstance(Byte(⍴,bytes)) ⍝ Empty array of type 'Byte' {ba.Set ⍵}¨↓(⍳⍴,bytes),[0.5 ...
- Wed Jul 10, 2024 12:11 pm
- Forum: APL Chat
- Topic: Fast Fourier transform in APL
- Replies: 4
- Views: 14213
Re: Fast Fourier transform in APL
Hello Ray, I am not an expert in Fourier Transform but here is what I have done: ∇ X←DFT x;k;n;N ⍝ Discrete Fourier Transform ⍝ https://en.wikipedia.org/wiki/Discrete_Fourier_transform ⍝ DFT←{⍵+.×⍨*○0J¯2×n÷⍨∘.×⍨¯1+⍳n←≢⍵} APLCart WS Full if too big ⍝ For x←1 2J¯1 0J¯1 ¯1J2 then X = 2 ¯2J¯2 0J¯2 4J4 ⍝ ...
- Sun Jun 30, 2024 3:53 pm
- Forum: Language
- Topic: Problem Defining 'Program Function Key'
- Replies: 3
- Views: 13477
Re: Problem Defining 'Program Function Key'
Thanks Paul and Adam for your answer. I found the culprit. I have a Logitech K800 keyboard and with the Logi+ software to configure the keyboard there is an option: ' Use F1, F2, etc. keys as standard function keys '. This option was disable, once I enable it the ⎕PFKEY started working. There was no ...
- Sun Jun 30, 2024 1:01 am
- Forum: Language
- Topic: Problem Defining 'Program Function Key'
- Replies: 3
- Views: 13477
Problem Defining 'Program Function Key'
While using Dyalog APL/W-64 Version 19.0.48959 on Windows 10 Pro if I try to define a 'Program Function Key' like this: (')VARS',⊂'ER')⎕PFKEY 2 it does not work when I press on F2 (Mail program is opening up). If I press on F1 while the caret is on ⎕PFKEY for example, the Dyalog help will not open bu ...
- Fri Jul 28, 2023 2:06 pm
- Forum: New to Dyalog?
- Topic: How do I execute Win32 functions?
- Replies: 6
- Views: 109070
Re: How do I execute Win32 functions?
If you don't mind using .Net here is what I am using: To start a Win32 function: ⎕USING∪←⊂',System.dll' sink←System.Diagnostics.Process.Start(⊂'notepad.exe') sink←System.Diagnostics.Process.Start(⊂'calc.exe') sink←System.Diagnostics.Process.Start(⊂'C:\Program Files (x86)\Dyalog') To get the TempPath: ...
- Sun Aug 07, 2022 8:54 pm
- Forum: Windows: GUI, COM/OLE/ActiveX
- Topic: JPEG files - extracting Comments from the metadata
- Replies: 5
- Views: 53346
Re: JPEG files - extracting Comments from the metadata
If you don't mind using .Net you can find what you are looking for here: https://old.aplwiki.com/netFreeImage
Regards,
Pierre Gilbert
Regards,
Pierre Gilbert
- Fri Feb 11, 2022 11:53 am
- Forum: Language
- Topic: How to use 'Find Objects'
- Replies: 4
- Views: 11673
Re: How to use 'Find Objects'
OK, thanks Vince. Will do.
- Fri Feb 11, 2022 2:11 am
- Forum: Language
- Topic: How to use 'Find Objects'
- Replies: 4
- Views: 11673
How to use 'Find Objects'
If I do the following in a )Clear WS: )ed ⍟ demo :Namespace demo ∇ test a←⍳5 ⍝ todo ∇ :EndNamespace And now if I click on the 'Search' icon in the 'Tool' toolbar of the IDE, there is the 'Find Objects' Window that will appear as expected. Question: How do I set up the search to find the text 'todo' i ...
- Wed Feb 02, 2022 5:46 pm
- Forum: Language
- Topic: SharpPlot graph into a Windows Form
- Replies: 20
- Views: 41230
Re: SharpPlot graph into a Windows Form
Looks like the SharpPlotImage class can be integrated into a Dyalog Form this way: ⎕USING∪←⊂',sharpplot.dll' sp1←⎕NEW Causeway.SharpPlot sp1.Heading←'This is a Dyalog demo' sp1.XAxisStyle←Causeway.XAxisStyles.(GridLines+CenteredCaption) sp1.XTickStyle←Causeway.XTickStyles.MinorTicks sp1.XCaption←'X C ...
- Wed Feb 02, 2022 4:43 pm
- Forum: Language
- Topic: SharpPlot graph into a Windows Form
- Replies: 20
- Views: 41230
Re: SharpPlot graph into a Windows Form
Question to Dyalog: How to make this work ? ⎕USING∪ ← ⊂'Causeway,sharpplot.dll' ⎕NEW SharpPlotViewer Causeway.SharpPlotViewer, Text: SharpPlot chart viewer ⍝ This is working 'Form' ⎕WC 'Form' ('Coord' 'Pixel') 'Form.spv' ⎕WC 'NetControl' 'SharpPlotViewer' ⍝ This is NOT working LIMIT ERROR: The object ...