Anonymous user
Align columns: Difference between revisions
→{{header|Visual Basic}}
No edit summary |
|||
Line 4,902:
End Sub</lang>
Usage:<lang vb>Sub Main() 'usage of the above
Const Text$ = "Given$
"are$delineated$by$
"that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$" & vbLf & _
"column$are$separated$by$at$least$one$space." & vbLf & _
"Further,$allow$for$each$word$in$
"justified,$right$justified,$or$center$justified$within$its$column."
Line 4,914:
End Sub</lang>
Output:<pre>-- Left:
Given
are delineated by
that aligns each column of fields by ensuring that words in each
column are separated by at least one space.
Further, allow for each word in
justified, right justified, or center justified within its column.
-- Center:
Given
are delineated by
that aligns each column of fields by ensuring that words in each
column are separated by at least one space.
Further, allow for each word in
justified, right justified, or center justified within its column.
-- Right:
Given
are delineated by
that aligns each column of fields by ensuring that words in each
column are separated by at least one space.
Further, allow for each word in
justified, right justified, or center justified within its column.
=={{header|Visual Basic .NET}}==
|