- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Enter "NewLine"
I want to split a string in a character column into two lines - by adding a newline.
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
name[1] = "A\!nB"
Can I do this directly when editing the cell - Alt + Enter doesn't seem to be right?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Enter "NewLine"
Here's one way, which is admittedly a bit of a hack:
- Open a new script window
- Hit enter
- Shift+up arrow to select that new line/carriage return
- Copy to clipboard, Ctrl+c
- Back to data table, enter first line, then Ctrl+v to paste, then enter second line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Enter "NewLine"
Your code seems to work the way you thought it would. I just had to expand the height of the rows to have it displayed.
names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
:name[1] = "A\!nB"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Enter "NewLine"
and is this possible without JSL, just by typing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Enter "NewLine"
Here's one way, which is admittedly a bit of a hack:
- Open a new script window
- Hit enter
- Shift+up arrow to select that new line/carriage return
- Copy to clipboard, Ctrl+c
- Back to data table, enter first line, then Ctrl+v to paste, then enter second line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Enter "NewLine"
Nice trick - thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Enter "NewLine"
I tried the method to enter and evaluate expressions to a literal value directly, but it only works for numeric expressions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Response: Enter "NewLine"
You can delete; first, then type another; and then press enter
This post originally written in Chinese (Traditional) and has been translated for your convenience. When you reply, it will also be translated back to Chinese (Traditional).