×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

formula help request

formula help request

formula help request

(OP)
Below, I've listed the results for one field in my target SQL Server database. I've used a green highlight within this field to should the area that I would like to target. You'll notice a value of "124124" and I would like to create a formula based on this field to show 124124 without the quotes. Any tips on how to create a formula to do so? TIA

<ArrayOfKeyValueOfstringstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization...">
<KeyValueOfstringstring>
<Key>personNumber</Key>
<Value>"124124"</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>arrested</Key>
<Value>{"code":"Y","description":"Yes"}</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>localID</Key>
<Value>"local \"S1\""</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>fbinumber</Key>
<Value>"fbi no 123-S1"</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>sbinumber</Key>
<Value>"cii no 123-S1"</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>typeOfGlasses</Key>
<Value>{"code":"04","description":"OTHER / UNKNOWN"}</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>appearance</Key><Value>[{"code":"02","description":"DIRTY"},{"code":"01","description":"NEAT WELL DRESSED"}]</Value>
</KeyValueOfstringstring><KeyValueOfstringstring><Key>description</Key><Value>"this is a description and comments section within the person field."</Value></KeyValueOfstringstring>
<KeyValueOfstringstring><Key>clothing</Key><Value>"THis is what this suspect is wearing. A blue pair of pants and white shirt"</Value></KeyValueOfstringstring>
</ArrayOfKeyValueOfstringstring>

RE: formula help request

Are you saying you only want the first value in the string returned? If so, try this:

local stringvar x := {table.yourfield};
extractstring(x,'Value>"','"</Value') //what may appear like three apostrophes is a double quote followed by a single quote, and then the
//reverse for the second part--single quote followed by a double quote.

-LB

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close