View Single Post
  #3 (permalink)  
Old March 12th, 2009, 11:10 AM
Lee Dumond's Avatar
Lee Dumond Lee Dumond is offline
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Not hard to do. But, a couple of things you've said are somewhat confusing.

First, you say you want to do this "at runtime." This makes no sense given what you've said. To do it at runtime would mean you want to do it on the fly while the program is running. Why would you need to do that if this is only a one-time thing to replace some missing values?

Second, the existing IDs and categories might not match what you had before unless the values in the text file are in the exact order as the existing values.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
The Following User Says Thank You to Lee Dumond For This Useful Post:
DavidM (April 6th, 2009)