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

database array

Status
Not open for further replies.

jvolden

IS-IT--Management
Jan 26, 2005
77
US
I have a field in my database that holds an array. I want to pull the last value of that array out of the database and use it in a report. Someone had suggested a custom ODBC driver. I'm am completly clueless on this one. Any suggestions?
Thank you!
 
What does the array look like?

Could do something like this:

Right ({yourfield},8)
 
If you know what divides the elements of the array, you could use a formula like the following, where "," is the divider for a string like "AB,15,16,xz":

split({table.string},",")[ubound(split({table.string},","))]

-LB
 
Thank you for your help. The field looks like this: Assignment was changed from \"ENTERPRISE ADMIN\" to \"IT SYSTEMS SUPPORT\" by. This is repeated many times in the field, once for easch queue change, and I have left some information in the field out. How can I split at the '"' ? I know how to place qoutes inside qoutes in other languages (PERL " \" ") but am unsure how to split at the qoute in crystal.
({table.string},"""))] does not work or any other syntax I have tried.
 
Try:

split({table.string},'"')[ubound(split({table.string],'"'))]
//single quote-double quote-single quote

This tests out here.

-LB
 
That worked out great. Thank you for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top