Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String field issue

Status
Not open for further replies.

dev1212

Programmer
May 11, 2010
117
US
I have a field {AllBoxDet} that has the details of all the boxes.
The value would be like, "Prod/Manf/Supp/Groc", "Guc/MXD/AAX/CDX

On the report i need to have each boxes in different columns like,

Branch Box1 Box2 Box3 Box4
1 Prod Manf Supp Groc
2 Guc MXD AAX CDX


I need an approach/formula to do this.

Thanks
 
Set up four formulas like this:

//{@1st element}:
stringvar array x := split({allboxdet},"/");
if ubound(x) >= 1 then
x[1]

//{@2nd element}:
stringvar array x := split({allboxdet},"/");
if ubound(x) >= 2 then
x[2]

//etc.

-LB
 
This works fine lbass, thanks.. sorry for replying so late..
I have a question, is the use of arrays reduce the performance of reports..? In other words will this slow down the report..?

Thanks
 
I don't think it should have much effect the way you are using them.

-LB
 
OK, thats what i wanted to know

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top