Empty
Empty using Row
Summary: Opens a data table, sets the row index to 12, and checks if the 'name' column is empty.
Code:
dt = Open("data_table.jmp");
dt = Open("data_table.jmp");
Row() = 12;
x = Is Empty( dt:name );
Code Explanation:
- Open data table;
- Open data table;
- Set row index to 12.
- Check if column "name" is empty.
Empty using New Window
Example 1
Summary: Runs font style settings for a Filter Column Selector in JMP, allowing users to customize the appearance of their data visualization.
Code:
dt = Open("data_table.jmp");
New Window( "Test Case 30", lb = Filter Col Selector( width( 250 ) ) );
lb << Set Base Font( "Title" );
tt = "Heading";
lb << Set Base Font( tt );
Small = "Mono";
lb << Set Base Font( Small );
lb << Set Base Font( "duh" );
lb << Set Base Font( 2 );
lb << Set Base Font();
lb << Set Base Font( . );
lb << Set Base Font( Empty() );
lb << Set Base Font( "text" );
lb << Set Base Font( "SMALL" );
lb << Set Base Font( "formula editor" );
lb << Set Base Font( "ANNOtatioN" );
lb << Set Base Font( "axiS" );
Code Explanation:
- Open data table;
- Create new window titled "Test Case 30".
- Add Filter Column Selector to window.
- Set base font to "Title".
- Set base font to "Heading".
- Set base font to "Mono".
- Set base font to "duh".
- Set base font to number 2.
- Reset base font to default.
- Set base font to empty value.
- Set base font to "text".
- Set base font to "SMALL".
- Set base font to "formula editor".
- Set base font to "ANNOtatioN".
- Set base font to "axiS".
Example 2
Summary: Creates a new window with a Filter Col Selector and font scaling adjustments, capturing log messages for each operation.
Code:
dt = Open("data_table.jmp");
New Window( "Test Case 31", lb = Filter Col Selector( width( 250 ) ) );
lb << Set Font Scale( 2 );
tt = .75;
lb << Set Font Scale( tt );
log = "";
log = Log Capture( lb << Set Font Scale( 0 ) );
log = "";
log = Log Capture( lb << Set Font Scale() );
log = "";
log = Log Capture( lb << Set Font Scale( . ) );
log = "";
log = Log Capture( lb << Set Font Scale( Empty() ) );
log = "";
log = Log Capture( lb << Set Font Scale( -5 ) );
lb << Set Font Scale( 1 );
Code Explanation:
- Open data table;
- Create new window "Test Case 31".
- Add Filter Col Selector to window.
- Set font scale to 2.
- Initialize tt to 0.75.
- Set font scale to tt.
- Initialize log as empty string.
- Capture log for setting font scale to 0.
- Reset log to empty string.
- Capture log for default font scale.
- Reset log to empty string.
- Capture log for setting font scale to .
- Reset log to empty string.
- Capture log for setting font scale to Empty().
- Reset log to empty string.
- Capture log for setting font scale to -5.
- Set font scale to 1.