Solved

Adding to multi-values

Posted on 1998-12-08
3
187 Views
Last Modified: 2013-12-18
I am writing a Script that needs to update a multi-value field.  Does anyone have an example of a script that will efficiently update the field with *UNIQUE* values? (i.e., if a particular value in the field already exists, don't add it--otherwise, add it)
0
Comment
Question by:IsleOfView
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Expert Comment

by:ChrisD
ID: 1117773
No, but I like Piers Anthony Novels.
0
 

Expert Comment

by:mkthakur
ID: 1117774
Try using while loop.
Check if the value already exist if yes set flag.
Out of the loop check if the flag is set and then add the value to the field.
It's very simple - just 5-6 lines of code.
0
 

Accepted Solution

by:
mkthakur earned 50 total points
ID: 1117775
See my comments above.
Hope you would be able to do that.
Please contact me tmanoj@in.ibm.com if you can't do that.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question