Cannot replicate samples in tutorial with v 1.5.8070 using C

General discussions related to APLNext's VisualAPL.

Moderators: Tech Support, phpbb_admin

Cannot replicate samples in tutorial with v 1.5.8070 using C

Postby selmslie » April 20th, 2009, 1:17 pm

1. Assignment using left arrow does result in a useable string (P 12). Need to follow the assignment with a=a.ToString() to give access to a.IndexOf("el")

2. Cannot define makestring (P 15). Typing in example results in:
∇makestring {
... a = "This is a
... line of text
... over three lines"
IndexOutOfRangeException: Index was outside the bounds of the array.

3. Need to know how to change the font size in Cielo Explorer.
selmslie
 

VisualAPL Tutorial

Postby selmslie » April 20th, 2009, 4:22 pm

4. On P 18, "fm" []wi "Create" "Form" does not work because "...assuming the appropriate namespaces..." is not mentioned. What would they be?

[/list]
selmslie
 

VisualAPL - Support for legacy []wi

Postby joe_blaze » April 20th, 2009, 5:59 pm

The examples in the tutorial do work properly, however, by design, not all features of VisualAPL are incorporated by default. This supports the .Net principle of specifying the minimal 'manifest' of required resources when building a .Net solution.

To see more about the VisualAPL support for the APL+Win legacy []wi (Windows Interface) functionality, including the required references to the optional namespaces and classes, please review the VisualAPL Forum topic at: http://forum.apl2000.com/viewtopic.php?t=446
joe_blaze
 
Posts: 383
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

Cielo Explorer - Font Properties are Programmer Controlled

Postby joe_blaze » April 20th, 2009, 6:10 pm

Please refer to the following VisualAPL Forum topic for details of the programmer control of the Cielo Explorer font properties: http://forum.apl2000.com/viewtopic.php?p=1701#1701
joe_blaze
 
Posts: 383
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

Cannot define "makestring"

Postby joe_blaze » April 20th, 2009, 6:23 pm

Try defining the 'makestring' function in a Cielo Explorer script:

)edit my_script_for_makestring [Enter]
//Select the path to save the script file
//Type the 'makestring' function definition into the script
Ctrl+E+E //Ends the script editing and defines the function in the session

//Back in the Cielo Explorer session type: )fns and see the "makestring" function
//Type makestring and see it execute.

The tutorial will be modified to make clear that the function should be defined in a Cielo Explorer script. Thanks for pointing this out.
joe_blaze
 
Posts: 383
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

a.IndexOf("el")

Postby joe_blaze » April 20th, 2009, 6:32 pm

The IndexOf(...) method is available for a .Net 'string' datatype. The "assignment by reference" (=) operator is the Visual Studio standard method of assignment which defaults to string datatype when the value on the left is enclosed in quotation marks (").

Using the "assignment by value" (Alt+[), creates a variable with type "Cielo". This datatype for character data inherits its properties from the "char[]" (and not the "string") .Net base class. The .Net "char[]" base class does not support the "IndexOf(...)" method.

The "Cielo" datatype for character data supports the traditional APL dyadic iota operator and the []ss function.

The tutorial text will be modified to use "assignment by reference" in this example. Thanks for reporting this.
joe_blaze
 
Posts: 383
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361


Return to VisualAPL

Who is online

Users browsing this forum: No registered users and 1 guest

cron