Hey all,
I am very new to crystal reports and really need to solve problem as soon as possible.
I am trying to pull value in from an access database . It is a parts field which is require for a invoice.
There a string with this format PartName-QTY-Cost + PartName-QTY-Cost + etc
I ould love to if possible to split EACH part into 3 different text boxes so in the above example there would be six text boxes. But if this proves to be too difficult I would be happy if i could get each part details on different lines if the same text box. I really need to get this sorted. I have tried using the split function but I can't get it to work correctly .
Please any help at all is will come .
Here is the code I am using
Global StringVar Array PartsList;
Global StringVar Array PartNameList;
Global StringVar Array QtyList;
Global StringVar Array CostList;
Local StringVar Array PartLine;
Local NumberVar index;
PartsList := Split({tblMachineHistory.Parts},'+');
For index := 1 to UBound(PartsList) do
(
PartLine := Split(PartsList[index],'-');
PartNameList[index] := PartLine [1];
QtyList[index] := PartLine [2];
CostList[index] := PartLine [3];
);
Thanks
James
I am very new to crystal reports and really need to solve problem as soon as possible.
I am trying to pull value in from an access database . It is a parts field which is require for a invoice.
There a string with this format PartName-QTY-Cost + PartName-QTY-Cost + etc
I ould love to if possible to split EACH part into 3 different text boxes so in the above example there would be six text boxes. But if this proves to be too difficult I would be happy if i could get each part details on different lines if the same text box. I really need to get this sorted. I have tried using the split function but I can't get it to work correctly .
Please any help at all is will come .
Here is the code I am using
Global StringVar Array PartsList;
Global StringVar Array PartNameList;
Global StringVar Array QtyList;
Global StringVar Array CostList;
Local StringVar Array PartLine;
Local NumberVar index;
PartsList := Split({tblMachineHistory.Parts},'+');
For index := 1 to UBound(PartsList) do
(
PartLine := Split(PartsList[index],'-');
PartNameList[index] := PartLine [1];
QtyList[index] := PartLine [2];
CostList[index] := PartLine [3];
);
Thanks
James