I didn't match your arrangement of characters like I intended to. The
arrangement I intended to produce is:

   ]CELLDATA =: |: 2 4 $ _3 <\ 3#'ABCDEFGH'
+---+---+
|AAA|EEE|
+---+---+
|BBB|FFF|
+---+---+
|CCC|GGG|
+---+---+
|DDD|HHH|
+---+---+

This better shows the change in boxing from your definition, that being

   ]CELLDATA =: (4 3 $ 'AAABBBCCCDDD') ;  4 3 $ 'EEEFFFGGGHHH'
+---+---+
|AAA|EEE|
|BBB|FFF|
|CCC|GGG|
|DDD|HHH|
+---+---+

--
Tracy

On Wed, Mar 10, 2010 at 9:09 AM, Tracy Harms <[email protected]> wrote:

> Perhaps the following starting value will work for your example.
>
>    ]CELLDATA =: 4 2 $ _3 <\ 3#'ABCDEFGH'
> +---+---+
> |AAA|BBB|
> +---+---+
> |CCC|DDD|
> +---+---+
> |EEE|FFF|
> +---+---+
> |GGG|HHH|
> +---+---+
>
> Individual cells of the grid are each given a single string (i.e. literal
> list).
>
> When changing values in the grid interface, you'll have to click outside of
> the cell in order for changes to a cell to be recognized.
>
> Please let us know if this doesn't fix your problem.
>
> --
> Tracy
>
> On Wed, Mar 10, 2010 at 6:58 AM, Bernard Verslype <
> [email protected]> wrote:
>
>> I want to use GRID with strings of characters instead of numbers, and
>> especially to change them. Is this possible?
>>
>> I changed the settings (CELLFMT, CELLALIGN,...), but I always get errors
>> when I want to make changes.
>> I take the example: <griddemo3.ijs>= Pass values to the grid using pack;
>> and I modify the value of CELLDATA
>> with CELLDATA =: (4 3 $ 'AAABBBCCCDDD') ;  4 3 $ 'EEEFFFGGGHHH'
>> This is the form that makes me a SELECT on a Microsoft base ACCESS.
>>
>> If I replace "FFF" by "ZZZ"
>> >>> not a number : ZZZ <<<
>>
>> If I replace "FFF" by "123"
>> >>>error in : gdemo_grid_char
>> domain error: grid_gridhandler__locP
>> old=.0j2   ":readcell__gridloc  Cell_gridloc<<<
>>
>> If I reset and do
>> load 'grid'
>>  (,:'CELLEDIT';1) grid (4 3$'AAABBBCCCDDD') ; 4 3 $ 'EEEFFFGGGHHH'
>>
>> If I replace "FFF" by "ZZZ"
>> >>> not a number : ZZZ <<<
>>
>> If I replace "FFF" by "123"
>> >>> error in : gridp_grid_char
>> Index error: writeblock
>> CELLDATA=: new ndx}CELLDATA<<<
>>
>> I think I do not understand the whole documentation because I am french,
>> and I apologize my English.
>> What should be the correct settings?
>>
>> Thank you for information.
>> BV
>>
>>
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to