Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

'word...

 [1/11] from: riusa:email:it at: 30-Jan-2002 13:30


Hi, I created a sub-panel (insertAnagrafica), but I cannot show it using the following code (if I substitute the word reference (panelName) with the name of the panel, it functions!). 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? thank you! -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Più siamo, meno paghiamo: unisciti a un gruppo d’acquisto di bid.it! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=232&d=30-1

 [2/11] from: mario:cassani:icl at: 30-Jan-2002 12:56


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

 [3/11] from: riusa:email:it at: 30-Jan-2002 16:35


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 function does not... fuction. ========================================
> Hallo Riusa, > > show-panel: func ['panelName] [
<<quoted lines omitted: 14>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
++++++++++++++++++++++++++++++++++++++++++++ Alessandro Manotti Presidente dell'Associazione "RIUSA" Sito web: http://riusa.apritisesamo.net email: [riusa--email--it] mailing-list: [riusa-ml--yahoogroups--com] Telefono: 347.63.43.231 -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Le vacanze da sogno si prenotano solo su eDreams. Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=75&d=30-1

 [4/11] from: mario:cassani:icl at: 30-Jan-2002 16:08


Ciao Alessandro,
> mhmmm.... > this is a function.... when I supply the arguments I must call this
<<quoted lines omitted: 5>>
> show-panel 'myPanel > and... the problem is the same: the function does not... fuction.
I am not sure I understood but, maybe, what you are tring to do is this: single: does [print "a"] double: does [print "a" print "a"] hooked: func [ the-value the-function ] [ print the-value the-function ] hooked "a" :single hooked "a" :double if not, please send directly to me a mail written in Italian... :P word: - assigns a value to 'word word - evaluates the 'word :word - passes the value of 'word directly Mario

 [5/11] from: brett::codeconscious::com at: 31-Jan-2002 9:37


Hi,
> I found another problem... please look at the code below: > ################################################
<<quoted lines omitted: 3>>
> show-panel insertAnagrafica > can someone help me? can someone explain me why does not function?
Inside your function "panelName" stands for the actual literal word insertAnagrafica not the value you expected (a face object). This is because you defined the function argument using the ' But you need the value that "insertAnagrafica" refers to. So try: show-panel: func ['panelName][ panels/pane: get panelName ] show-panel insertAnagrafica Brett.

 [6/11] from: al:bri:xtra at: 31-Jan-2002 16:35


Did anyone notice that Alessandro's function is missing a square bracket? show-panel: func ['panelName] [ should look like: show-panel: func ['panelName]] [ Note the "extra" square bracket at the end. Plus all the extra bits that the others found as well. :-) Andrew Martin ICQ: 26227169 http://valley.150m.com/

 [7/11] from: riusa:email:it at: 31-Jan-2002 9:17


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
<<quoted lines omitted: 6>>
> show-panel insertAnagrafica > Brett.
-- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Obiettivo Laurea? basta con le pratiche burocratiche! Te le possiamo sbrigare noi. Per informazioni Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=216&d=31-1

 [8/11] from: riusa:email:it at: 31-Jan-2002 9:33


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: func ['panelName] [ > should look like:
<<quoted lines omitted: 4>>
> ICQ: 26227169 http://valley.150m.com/ > -><-
-- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Obiettivo Laurea? basta con le pratiche burocratiche! Te le possiamo sbrigare noi. Per informazioni Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=216&d=31-1

 [9/11] from: al:bri:xtra at: 31-Jan-2002 21:54


> 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://valley.150m.com/

 [10/11] from: riusa:email:it at: 31-Jan-2002 10:09


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} sub-title' [string!] {Titolo/sottotitolo del pannello} ]] [ sub-title: sub-title' ;; Set del tipo di inserimento hide-panel ; ; Carica il codice che contiene la form richiesta ;....................................................... switch panelName [ panelInsert [ do % anagrafica.r ] panelSearch [ do % cerca.r ] ] ; ; Mostra il nuovo pannello ;.............................. panels/pane: get panelName show panels ] ========================================= I'm sorry for italian comments...
> > Why I should insert that extra square-bracket? > > If I insert it Rebol reports me an error!
<<quoted lines omitted: 5>>
> Andrew Martin > ICQ: 26227169 http://valley.150m.com/
-- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Le vacanze da sogno si prenotano solo su eDreams. Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=75&d=31-1

 [11/11] from: al:bri:xtra at: 31-Jan-2002 22:44


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/

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted