"Terry Olsen" <to******@hotmail.com> wrote in news:ePP#Ei#FGHA.1028
@TK2MSFTNGP11.phx.gbl:
I'm completely confused. What exactly are we trying to accomplish here?
Normally I can figure stuff out, but I'm drawing a blank on this one.
Strings used in Random Access files require a <VBFixedString()> modifier
because each record in a RAF must be of equivalent length.
If your user inputs that data in a TextBox, there's a chance he'll proceed
beyond that allotted length, in which case the data will be trunecated...
so it's helpful to set the TextBox's MaxLength = to the number of
characters the string is restricted to...
Unfortunately, this results in repetition of effort: a change must be
reflected in *both* places... which can lead to discrepencies.
It's much easier to find a way to set TextBox's MaxLength = to the
fixedstring length, and only worry about modifying *one* line of code to
make such a change.