Link to home
Start Free TrialLog in
Avatar of kwh3856
kwh3856Flag for United States of America

asked on

HTML bold code works for one string but not the other?

I am using the HTML bold code to modify text in a string variable that is then attached to an HTML editor for display.  In one line of the code it works beautiful but in another it does not.  Can someone point me in the right direction?



int i = 0;

                foreach (var rsdatarec in RXresult)
                {

                    rxarray[i] = rsdatarec.rxdata.RxItemName + "<b>Rx Strength = </b>" + rsdatarec.rxdata.RxStrength + "   <b>Take = </b>" + rsdatarec.rxdata.RxTakeValue + "   <b>Frequency = <b>/" + rsdatarec.rxdata.RxFreq + "   <b>Duration = </b>" + rsdatarec.rxdata.RxDuration + "   <b>Dispense = </b>" + rsdatarec.rxdata.RxDespenseValue + "   <b>Refills = </b>" + rsdatarec.rxdata.RxRefillsValue;----------<<<<<<<<<-----problem occurs HERE

                    MyGlobalVars.Rx[i] = rxarray[i];

                    i++;

                }


                // Concantenate Rx Array
                int rxindex;
                MyGlobalVars.RxConCat = "<br /><br /><font color=blue><b>Medications</b></font><br />";  -----------<<< works great HERE---

Open in new window

Avatar of kwh3856
kwh3856
Flag of United States of America image

ASKER

line 6 does not work

line 17 does
ASKER CERTIFIED SOLUTION
Avatar of dougaug
dougaug
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kwh3856

ASKER

Wow!!! I totaly missed that.  I guess I was to close to the forest to see the trees.  Thanks.