cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-82669%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EImplement%20Prev%20Sib%20for%20Displays%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-82669%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EWhen%20buidling%20a%20display%20tree%20in%20a%20new%20window%20I%20cannot%20traverse%20the%20tree%20in%20reverse%20direction.%20So%20I%20can%20use%20number%20edit%20box%20%26lt%3B%26lt%3B%20sib%20to%20find%20the%20next%20display%20box%2C%20but%20I%20cannot%20use%20%26lt%3B%3CPREV%20sib%3D%22%22%20to%3D%22%22%20find%3D%22%22%20the%3D%22%22%20previous%3D%22%22%20display%3D%22%22%20box.%3D%22%22%3E%3C%2FPREV%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExample%20of%20what%20I'm%20trying%20to%20do%20in%20this%20forum%20topic%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FNumber-edit-box-do-support-lt-lt-sib-but-do-not-support-lt-lt%2Fm-p%2F82642%23U82642%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-forum-thread%20lia-fa-icon%20lia-fa-forum%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3ENumber%20edit%20box%20do%20support%20%26lt%3B%26lt%3B%20sib%20but%20do%20not%20support%20%26lt%3B%26lt%3B%20prev%20sib%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-82669%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EScripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUser%20Interface%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-246627%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Implement%20Prev%20Sib%20for%20Displays%20-%20Status%20changed%20to%3A%20Delivered%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-246627%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJMP%2015%20has%20a%20%26lt%3B%3CPREV%20sib%3D%22%22%3E%0A%3C%2FPREV%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%2F%2FThis%20message%20applies%20to%20all%20display%20box%20objects%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Abiv%20%3D%20dt%20%26lt%3B%26lt%3B%20Bivariate(%20y(%20%3Aweight%20)%2C%20x(%20%3Aheight%20)%20)%3B%0Arbiv%20%3D%20biv%20%26lt%3B%26lt%3B%20report%3B%0Aaxisbox%20%3D%20rbiv%5Baxis%20box(%202%20)%5D%3B%0AaxisSibling%20%3D%20axisbox%20%26lt%3B%26lt%3B%20Prev%20Sib()%3B%0APrint(%20axisSibling%20%26lt%3B%26lt%3B%20Class%20Name()%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
0 Kudos

Implement Prev Sib for Displays

When buidling a display tree in a new window I cannot traverse the tree in reverse direction. So I can use number edit box << sib to find the next display box, but I cannot use <<prev sib to find the previous display box.

 

Example of what I'm trying to do in this forum topic:  

 

1 Comment
Jeff_Perkinson
Community Manager
Status changed to: Delivered

JMP 15 has a <<Prev Sib() message.

 

Names Default To Here( 1 );
//This message applies to all display box objects
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = dt << Bivariate( y( :weight ), x( :height ) );
rbiv = biv << report;
axisbox = rbiv[axis box( 2 )];
axisSibling = axisbox << Prev Sib();
Print( axisSibling << Class Name() );