cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3EParcourez%20les%20rapports%20et%20extrayez%20le%20titre%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CP%3EBonjour%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EJ'essaie%20de%20parcourir%20tous%20les%20rapports%20g%C3%A9n%C3%A9r%C3%A9s%20%C3%A0%20partir%20d'une%20ANOVA%20%C3%A0%20sens%20unique.%20Je%20cr%C3%A9e%20une%20liste%20des%20rapports%20%3CEM%3Eanova_list.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESi%20j'essaie%20manuellement%20d'extraire%20le%20titre%20d'un%20rapport%20avec%20la%20syntaxe%20suivante%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CEM%3Ecurr_anova%20%3D%20anova_list%5B1%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20rapport%20%26lt%3B%26lt%3B%20obtenir%20le%20titre(%22string%22)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3Ele%20r%C3%A9sultat%20est%20ce%20%C3%A0%20quoi%20je%20m'attends%20-%20une%20variation%20de%20%3A%20%3CEM%3EAnalyse%20unidirectionnelle%20de%20Y%20par%20X%20by1%3Dby1val%20by2%3Dby2val...%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EMais%20quand%20j'essaye%20de%20faire%20%C3%A7a%20en%20boucle%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%3CEM%3Epour(i%20%3D%201%2C%20i%26lt%3B%3D%20n%20%C3%A9l%C3%A9ments(anova_list)%2C%20i%2B%2B%2C%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ecurr_anova%20%3D%20anova_list%5Bi%5D%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20rapport%20%26lt%3B%26lt%3B%20obtenir%20le%20titre(%22string%22)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3Ela%20sortie%20de%20%3CEM%3Ereport_title%3C%2FEM%3E%20est%20%3CEM%3EDisplayBox%5BOutlineBox%5D.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EEst-ce%20que%20je%20fais%20un%20oubli%20sur%20la%20syntaxe%20%3F%20J'ai%20essay%C3%A9%20diff%C3%A9rentes%20combinaisons%20d'%C3%A9valuations%20pour%20voir%20si%20la%20sortie%20change%2C%20en%20vain.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-777741%22%20slang%3D%22en-US%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3EAnalyse%20et%20mod%C3%A9lisation%20des%20donn%C3%A9es%20de%20base%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eles%20fen%C3%AAtres%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777751%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Parcourez%20les%20rapports%20et%20extrayez%20le%20titre%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777751%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEssayez%20de%20changer%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ereport_title%20%3D%20curr_anova%20%26lt%3B%26lt%3B%20report%20%26lt%3B%26lt%3B%20get%20%20title(%22string%22)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%C3%A0%20(les%20parenth%C3%A8ses%20%C3%A9tant%20les%20plus%20importantes)%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ereport_title%20%3D%20(curr_anova%20%26lt%3B%26lt%3B%20report)%20%26lt%3B%26lt%3B%20get%20%20title%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777752%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Parcourez%20les%20rapports%20et%20extrayez%20le%20titre%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777752%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ejthi%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EMerci%20pour%20la%20suggestion.%20Cela%20fait%20effectivement%20l'affaire%20!%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EPuis-je%20demander%20pourquoi%20c'est%20diff%C3%A9rent%20%3F%20A%20quoi%20sert%20le%20confinement%20avec%20parenth%C3%A8ses%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%20%3A%20Parcourez%20les%20rapports%20et%20extrayez%20le%20titre%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777754%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EVotre%20version%20originale%20a%20cr%C3%A9%C3%A9%20une%20%C2%AB%26nbsp%3Bcascade%20de%20messages%26nbsp%3B%3A%26nbsp%3B%C2%BB%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eresult%20%3D%20obj%20%26lt%3B%26lt%3B%20message%201%20%26lt%3B%26lt%3B%20message%202%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ELe%20r%C3%A9sultat%20est%20issu%20de%20la%20succession%20de%20messages%20vers%20un%20m%C3%AAme%20objet.%20L'utilisation%20des%20parenth%C3%A8ses%20envoie%20le%20deuxi%C3%A8me%20message%20au%20r%C3%A9sultat%20de%20l'envoi%20du%20premier%20message.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
doctorfizz
Level II

Loop through reports and extract title

Hello,

 

I am trying to loop through all reports generated from an ANOVA-oneway. I create a list of the reports anova_list. 

 

If I manually try to extract the title from a report with the following syntaxt

 

curr_anova = anova_list[1] 

report_title = curr_anova << report << get  title("string")

 

the output is what I expect - some variation of: Oneway Analysis of Y by X by1=by1val by2=by2val ...

 

But when I try to do this in a loop

 

for(i = 1, i<= n items(anova_list), i++,

curr_anova = anova_list[i] 

report_title = curr_anova << report << get  title("string")

)

 

the output of report_title is DisplayBox[OutlineBox].

 

Am I making an oversight on the syntax? I have tried different combinations of evals to see if the output change, to no avail. 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Loop through reports and extract title

Try changing

report_title = curr_anova << report << get  title("string")

 

to (the brackets being the most important)

 

report_title = (curr_anova << report) << get  title;
-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

Re: Loop through reports and extract title

Try changing

report_title = curr_anova << report << get  title("string")

 

to (the brackets being the most important)

 

report_title = (curr_anova << report) << get  title;
-Jarmo
doctorfizz
Level II

Re: Loop through reports and extract title

jthi,

 

thanks for the suggestion. This indeed does the trick! 

 

May I ask why this is different? What does the containment with parenthesis do? 

Re: Loop through reports and extract title

Your original version created a 'message cascade:"

result = obj << message 1 << message 2;

The result is from the succession of messages to the same object. Using the parentheses sends the second message to the result of sending the first message.