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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching For Tags In Memo Field Where Tags Can Be Null

Status
Not open for further replies.

braves90

IS-IT--Management
Mar 9, 2016
3
0
0
US
Like the title says, I have a formula that I found online and it works great when the tags are present. The problem is that they may not always be present in the memo field. When that happens, the report breaks.

StringVar end := "<" + "/" + {?tag parameter};

StringVar a := {xml database field};

numberVar b := InStr({xml database field}, {?tag parameter});

b := b +Length({?tag parameter}) +1;

StringVar firstcut := mid(a,b);

numberVar c := InStr(firstcut, end) -1;

left(firstcut, c);

Thank you in advance.
 
Go to File, Report Options, and click on Convert Database Null Values to Default.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top