MikeCopeland
Programmer
Using CR XI...
Is there some way to test for the presence of a substring within a string? Specifically, I wish to look for data that isn't formatted correctly: e.g. the data is _supposed_ to be dollars.cents (nn.cc), but sometimes the data is inputted without the decimal point and cents.
For example, if the data is "7.00", it's okay; if it's "7", it's an error and I want to select that record for printing.
I can't seem to find any CR function that works like IsNull which does this, so I guess I'll have to build my own. I just don't see how to go about this... Any thoughts? TIA
Is there some way to test for the presence of a substring within a string? Specifically, I wish to look for data that isn't formatted correctly: e.g. the data is _supposed_ to be dollars.cents (nn.cc), but sometimes the data is inputted without the decimal point and cents.
For example, if the data is "7.00", it's okay; if it's "7", it's an error and I want to select that record for printing.
I can't seem to find any CR function that works like IsNull which does this, so I guess I'll have to build my own. I just don't see how to go about this... Any thoughts? TIA