The bin location has a number in it - ie .47, but the the field is usually used for alpha in the database, hence crystal considers it a string I assume
Although the bin location is designed for alpha there are no alpha characters used in this database
You can rip the numeric portion out easily enough:
whileprintingrecords;
numbervar Counter;
stringvar TheField:={table.field};
StringVar OutField;
For Counter := 1 to len(trim(TheField)) do(
if isnumeric(mid(TheField,Counter,1))
or
isnumeric(mid(TheField,Counter,1)) = "."
then
OutField:=OutField+mid(TheField,Counter,1)
);
val(OutField)
whileprintingrecords;
numbervar Counter;
stringvar TheField:={table.field};
StringVar OutField;
For Counter := 1 to len(trim(TheField)) do(
if isnumeric(mid(TheField,Counter,1))
or
mid(TheField,Counter,1) = "."
then
OutField:=OutField+mid(TheField,Counter,1)
);
val(OutField)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.