sharprain.dws, FNS Glossary

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...
Post Reply
Leo
Posts: 38
Joined: Mon Sep 18, 2017 12:10 pm

sharprain.dws, FNS Glossary

Post by Leo »

DyalogAPL Version 15.0.27982.0 64Unicode
Windows 7

Hello DyalogAPL friends,
At the start of the DyalogAPL-FNS "Glossary" in sharprain.dws I get the following error message:
      Glossary 
⍎VALUE ERROR
MakeTable[0] Causeway.LineStyle.Solid
(In rainpro, Glossary works.)

The program sequence is shown in the following pictures:
      ∇ r←Glossary;hm;vm
[1] ⍝ Shows some basic concepts, such as chart area and margins
[2]
[3] ch.Set('style' 'boxed,xyplot,grid')('head' 'This is the Heading')
[4] ....


∇ {res}←Set vec
[1] ⍝ Override graphics defaults for (prop,value) pairs
[2] ⍝ Help ctx#620
[3] res←sp∆init
[4] CH∆SET vec



∇ {res}←sp∆init;dyalog;using;MakeTable
[1] ⍝ Set default/starting values for all chart options
[2]
[3] :If 0=⎕NC'sp'
[4] ⍙wince←'P'=1↑⊃2↓'.'⎕WG'APLVersion' ⍝ For Pocket Rain
[5] dyalog←(2 ⎕NQ'.' 'GetEnvironment' 'Dyalog')
[6] ∆homedir←dyalog,'Samples\Causeway\'
[7] ⍝ We look here for the help file rainpro.chm
[8] ∆helpdir←dyalog,'help'
[9] sp∆using
[10]
[11] ⍝ US cycles
[12] MakeTable←{⍵[;1 2 3],⍎¨⍵[;4]} ⍝ evaluate SharpPlot values
[13] sp⍙lines←MakeTable ∆lines......



The trace of the spΔinit function returns the following results in the individual lines:
      sp∆init[1]
sp∆init[2]
sp∆init[3]
sp∆init[4] 0
sp∆init[5] C:\Program Files\Dyalog\Dyalog APL-64 15.0 Unicode
sp∆init[6] C:\Program Files\Dyalog\Dyalog APL-64 15.0 UnicodeSamples\Causeway\
sp∆init[7]
sp∆init[8] C:\Program Files\Dyalog\Dyalog APL-64 15.0 Unicodehelp
sp∆init[9]
sp∆init[10]
sp∆init[11]
sp∆init[12] ∇MakeTable
⍎VALUE ERROR
MakeTable[0] Causeway.LineStyle.Solid


Probably is my sharpplot-installation wrong.
I have therefore following questions:
1. Where do come the FNS Causeway and MakeTable ?
2. How does the matrix ⍵ result in MakeTable?
      MakeTable←{⍵[;1 2 3],⍎¨⍵[;4]}  ⍝ evaluate SharpPlot values

In addition, I can not find the functions
      C:\....\Dyalog APL-64 15.0 UnicodeSamples\Causeway\ 		 
C:\....\Dyalog APL-64 15.0 Unicodehelp

with Windows Explorer

For your hints, I thank you in advance!
Best regards
Leo
Vince|Dyalog
Posts: 439
Joined: Wed Oct 01, 2008 9:39 am

Re: sharprain.dws, FNS Glossary

Post by Vince|Dyalog »

Hi Leo,

I also see the problem in 15.0's sharprain.dws with sp∆init. However, Glossary works for me.

We should have updated sharprain.dws to work with the new value for our DYALOG environment variable.

That particular issue can be fixed by adding the following line after the GetEnvironment call:
      dyalog←(2 ⎕NQ'.' 'GetEnvironment' 'Dyalog')
dyalog,←'\'



In a clear workspace, you should get (Causeway) if you type Causeway in the session after doing this:
      ⎕using←',SharpPlot.dll'
Causeway


Then, you can ask for Causeway.LineStyle and Causeway.LineStyle.Solid.

      Causeway
(Causeway)
Causeway.LineStyle
(Causeway.LineStyle)
Causeway.LineStyle.Solid
LineStyle [1,Solid]


I think that the Causeway assembly is not being loaded by the .NET interface on your computer. Please contact Dyalog Support so that we can find out what is going wrong.

Regards,

Vince
Vince|Dyalog
Posts: 439
Joined: Wed Oct 01, 2008 9:39 am

Re: sharprain.dws, FNS Glossary

Post by Vince|Dyalog »

Hi Leo,

I have added a post to this FAQ topic which may help you get our .NET interface working on your computer:

http://www.dyalog.com/forum/viewtopic.php?f=22&t=185

Regards,

Vince
Leo
Posts: 38
Joined: Mon Sep 18, 2017 12:10 pm

Re: sharprain.dws, FNS Glossary

Post by Leo »

Thank you Vince,
thanks for your help I could fix the error in sharprain.dws.
After reinstalling
      Microsoft Visual C++ 2015 Redistributable (x64)-14.0.23026 
(EXE-File: vc_redist.x64.exe)

run the functions in sharprain.dws.
It was missing
      c:\Windows\System\vcruntime140.dll.

Thanks again and greetings
Leo
Post Reply