Title: | *OLD* ALL-IN-1 (tm) Support Conference |
Notice: | Closed - See Note 4331.l to move to IOSG::ALL-IN-1 |
Moderator: | IOSG::PYE |
Created: | Thu Jan 30 1992 |
Last Modified: | Tue Jan 23 1996 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 4343 |
Total number of notes: | 18308 |
ALL-IN-1 2.4 Can someone explain why ASCII 9 tabs in the script below do not work when called from the boilerplate. The Tabs with ASCII 9 appear to be translated into a single space when you do <merge clive, tt: but a decimal tab works fine. Thanks Clive Barham UK CSC !clive.blp C L I V E S B O I L E R P L A T E ----------------------------------------------------- USERNAME:<OA$USER> <&oa do clive> **************************************************************** !clive.scp GET #NAME = "CLIVE was HERE!" GET #ADDRESS = "HOME SOMETIMES" !comment out one of the following as required !.goto ascii_tab .goto decimal_tab .label ascii_tab ! Below is the 2 ascii 9 tabs THIS ONLY GIVES A SPACE GET #TAB = " " get oa$merge_line = #TAB " NAME:" #NAME get oa$merge_line = #TAB " ADDRESS:" #ADDRESS .exit .label decimal_tab !Below is the decimal tab - THIS WORKS GET #TAB = 15 !BELOW to be used with Decimal tab get oa$merge_line = "<&TAB " #TAB "> NAME:" #NAME get oa$merge_line = "<&TAB " #TAB "> ADDRESS:" #ADDRESS .exit
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
164.1 | No tab in symbol | UTRTSC::BOSMAN | We're just sugar mice in the rain | Wed Mar 04 1992 12:36 | 14 |
Clive, I don't know why but if you want to load a tab into a symbol, the symbol contains nothing! The single space you mean doesn't come from the tab but from your syntax, the space before NAME: | v � get oa$merge_line = #TAB " NAME:" #NAME By the way, &TAB doesn't include spaces but 'jumps' to the specified column position. Success, Sjaak. | |||||
164.2 | The reason | SCOTTC::MARSHALL | Pearl-white, but slightly shop-soiled | Wed Mar 04 1992 14:22 | 17 |
>> I don't know why but if you want to load a tab into a symbol, the >> symbol contains nothing! Trailing white space is always removed from values assigned to symbols. If you want to force a string to have spaces after it, use the :nn notation, eg: GET #item1 = "Text" GET #item2 = "More text" GET OA$DISPLAY = #item1:15 #item2 - this gives the output "Text More text" (ie 11 spaces after the first symbol, to make its length be 15) Alternatively, in V3 you can use a variety of lexical functions to achieve similar effects... Scott |