Ack! I'm going blind! :-)
Sorry about that! It's my mistake. The right number of square brackets are
showing. It's the formatting that must have thrown me -- at least that's my
excuse! :-)
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
-><-
--
To unsubscribe from this list, please send
I send all the code, but... my source code (without extra square
brakets) functions correctly!
SOURCE CODE:
SHOW-PANEL: func [ 'panelName
{Nome del pannello da
visualizzare}
> Why I should insert that extra square-bracket?
> If I insert it Rebol reports me an error!
>
> ** Syntax Error: Missing [ at end-of-block
> ** Near: (line 68) ]] [
You've got more missing square brackets! :-)
Post the code to the list and we'll point it out.
Andrew Martin
ICQ: 26227169 http:
Why I should insert that extra square-bracket?
If I insert it Rebol reports me an error!
** Syntax Error: Missing [ at end-of-block
** Near: (line 68) ]] [
===
> Did anyone notice that Alessandro's function is missing a square
bracket?
>
> show-panel: f
WOW! It's true! Using "get panelName"... it functions!
Thank you very much for your help!
I discovered another important Rebol word!
Bye!
> Inside your function "panelName" stands for the actual literal word
> "insertAnagrafica" not the value
> you expected (a face object). This is because you
ound as well. :-)
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
-><-
- Original Message -
From: "Cassani Mario" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 5:08 AM
Subject: [REBOL] Re: 'word...
> Ciao Alessandro,
>
Hi,
> I found another problem... please look at the code below:
>
> show-panel: func ['panelName] [
> panels/pane: panelName
> ]
> show-panel insertAnagrafica
> can someone help me? can someone explain me why does not function?
Inside your f
Ciao Alessandro,
> mhmmm
>
> this is a function when I supply the arguments I must call this
> function as follows:
>
>show-panel myPanel
>
> but I cannot! Since Rebol tries to elaborate "myPanel" word!
> therefore
> I must the function as follows:
>
>show-panel 'myPanel
mhmmm
this is a function when I supply the arguments I must call this
function as follows:
show-panel myPanel
but I cannot! Since Rebol tries to elaborate "myPanel" word! therefore
I must the function as follows:
show-panel 'myPanel
and... the problem is the same: the funct
Hallo Riusa,
> show-panel: func ['panelName] [
> panels/pane: panelName
> ]
Try (untested):
show-panel: func [
{Shows the given panel}
panelName
{the given panel}
] [
panels/pane: panelName
]
The leading ' shoud be avoided.
Mario
--
To unsubscribe from this list
Hi PeO,
... or you could use query ...
> query/clear system/words
== [end! unset! error! datatype! context! native! action! routine! op! function!
object! struct! library! port! any-type! any-word!...
>> f: func [][a: 1]
>> query system/words
== [f]
>> f
== 1
>> query system/words
== [f a]
>>
Thanks Larry, after some time of more experimenting, I also got it working
using the part from rebdoc.r (using if not unset? first vals ..), but your
routine was more clean and compact.
Maybe just a
word-list: make block! 500
in the beginning may speed it up, even if it's not slow..
If I'm no
Hi PeO
This works:
>> words-with-vals: has [word-list][
word-list: copy []
foreach word first rebol/words [
if not error? try [get in rebol/words :word][append word-list word]
]
word-list
]
>> wv: words-with-vals
== [unset! error! datatype! native! action! routine! op! f
13 matches
Mail list logo