Wednesday, January 9, 2008 Tip of the Day: Copying/Pasting Multiple Line Code at R> Prompt
Section: RBEdit, R:BASE Editor Hot Keys, R> Prompt Supported Versions: . R:BASE 7.6 (Build 7.6.2.30102 or higher) for Windows . R:BASE C/S:I 7.6 (Build 7.6.2.30102 or higher) for Windows . R:BASE Turbo (Build 8.0.16.30102 or higher) for Windows When copying exact code with multiple lines and continuation symbol such as "+" at the R> prompt, it can be tedious to take out all the + symbols and turn the entire code as one line for the R> prompt to execute properly. For example, a command looks like the following when typed in RBEdit or R:BASE Editor 7.6. CHOOSE vWhereCluase FROM #WHERE IN Customer + OPTION THEMENAME R:BASE Rocks! + |WHERE_CLAUSE WHERE CustState IS NOT NULL + GROUP BY CustState HAVING COUNT(CustState) > 1 If you copy and past the above command with multiple lines and continuation symbols at the R> prompt, it will be copied exactly as is, and then you would have to eliminate the "+" symbols before pressing the [Enter] key to execute the command. Did you know that you use the "Shift+Ctrl+Alt+C" keys to copy the entire block and paste at the R> prompt as one single line without the continuation "+" symbols? Using "Shift+Ctrl+Alt+C" keys eliminates the continuation "+" symbols at the end of each line when pasted. Command Pasted at R> Prompt: http://www.rbase.com/rbg76/CommandPastedAtRPrompt.jpg Result: http://www.rbase.com/rbg76/WhereBuilder.jpg Have fun! Very Best R:egards, Razzak.

