views:

156

answers:

1
  • I have a list of Filemaker database names
  • Each DB name has a list of field/attribute pairs associated with it
  • I have a windows form application in C# 4.0 (vs2010) that wants to use the above data
  • I would like to maintain the list either in the Visual Studio settings page, or in one of the standard visual studio settings files using the standard .NET settings calls
  • I would like to avoid writing my own custom settings, xml, xds (to avoid the "Could not find schema information for the element/attribute " errors)
  • I just have a slightly complicated INI file! I don't want to complicate my life!

Do any easy solutions exist?

Unless someone has a brighter idea, I am simply going to write string settings with names that indicate it's a FM DB (e.g. "fmdbAddresses"), and values that concat my field/attribute pairs (e.g. "gUserResult=skipField|gAddressID=convertToInt|gAddressID=uniqueIx")

A: 

NOTE: I worked through the excellent articles by Jon Rista on CodeProject, which led me to the "Could not find schema information for the element/attribute" errors. In any case, for the info that I wanted to store, I think an XML file, a specially built class needing to know a lot about VS config files, and an XDS file or include to bring one in is more than a bit overblown.

I also read and tried things from a few dozen pages on the web... I gained a deeper understanding of the .NET way, but still nothing which I found simple or elegant enough.

I find it hard to believe there is not a better way that I'm somehow missing.

Ed Eichman