_Alignment, _Indent, _LMargin, _RMargin, _Tabs
These variables are vestiges of the printer control system introduced in FoxPro 1.0. Like so much in FoxPro, it seemed like a good idea at the time, but has been superseded several times since.These variables control aspects of individual lines produced by ? and ??. Except for _TABS, they're only effective when _WRAP is .T.
Usage |
_ALIGNMENT = "LEFT" | "CENTER" | "RIGHT" |
Usage |
_INDENT = nCharsToIndent |
This one, on the other hand, is flaky. It works, sort of, when applied to memo fields, but not the rest of the time. We say "sort of" because it moves all lines of the memo out to the specified indent, not just the first line. Consider it a "block indent" rather than a "first line indent" and it makes some sense. This, no doubt, ties in with FoxPro's "automatic indent" capability which is so handy when writing code, but it keeps happening even when automatic indent is turned off. |
Usage |
_LMARGIN = nLeftMargin _RMARGIN = nRightMargin |
Usage |
_TABS = cListOfTabStops |
Example |
_LMARGIN = 5 _RMARGIN = 75 _WRAP = .T. _TABS = "15,25,35" ? "Look"+CHR(9)+"I can"+CHR(9)+"Make"+CHR(9)+"Columns" ? "This is the beginning of a long line that will eventually "+; "wrap, showing how the margins work. In fact, showing THAT "+; "the margins work." |
See Also |