Tech Tip: Adding a tab control to a 4D Write area
PRODUCT: 4D Write | VERSION: 2004.3 | PLATFORM: Mac & Win
Published On: February 17, 2006
You can use the WR ADD TAB command to add a new tab on a specified position to a 4D Write area. This new tab will be applied to the selected text. Thus, you must first make a selection of text in the 4D Write area where you will need to insert the tab. For instance, the code below selects the inserted text and a new right aligned tab is inserted 10 positions from the left.
TempArea:=WR New offscreen area
mytext:="ABC"+Char(9)+"DEF"
WR INSERT TEXT (TempArea;mytext) `insert text with tab
WR SET SELECTION (TempArea;0;1000) ` select text in area
WR ADD TAB (TempArea;10;wr right tab )
WR SAVE DOCUMENT (TempArea;"C:\\testWrite1.4W7";"4WR7")