Click here to Skip to main content
15,922,574 members
Home / Discussions / C#
   

C#

 
GeneralGet table names in an Access .mdb database Pin
BillAnton18-Apr-04 5:50
BillAnton18-Apr-04 5:50 
GeneralRe: Get table names in an Access .mdb database Pin
Mike Ellison18-Apr-04 19:33
Mike Ellison18-Apr-04 19:33 
GeneralRe: Get table names in an Access .mdb database Pin
Mike Ellison18-Apr-04 19:35
Mike Ellison18-Apr-04 19:35 
GeneralRe: Get table names in an Access .mdb database Pin
BillAnton19-Apr-04 8:37
BillAnton19-Apr-04 8:37 
GeneralReading an ini file Pin
mcgahanfl18-Apr-04 5:27
mcgahanfl18-Apr-04 5:27 
GeneralRe: Reading an ini file Pin
CWIZO18-Apr-04 7:01
CWIZO18-Apr-04 7:01 
GeneralRe: Reading an ini file Pin
kratchkov18-Apr-04 10:02
kratchkov18-Apr-04 10:02 
GeneralRe: Reading an ini file Pin
mcgahanfl18-Apr-04 11:24
mcgahanfl18-Apr-04 11:24 
Generala narrow, veritical dialog Pin
mcgahanfl18-Apr-04 5:23
mcgahanfl18-Apr-04 5:23 
GeneralRe: a narrow, veritical dialog Pin
Jon G19-Apr-04 1:06
Jon G19-Apr-04 1:06 
Generalcdrom tray control Pin
kratchkov18-Apr-04 3:55
kratchkov18-Apr-04 3:55 
GeneralRe: cdrom tray control Pin
Stefan Troschuetz18-Apr-04 6:00
Stefan Troschuetz18-Apr-04 6:00 
GeneralRe: cdrom tray control Pin
MeterMan18-Apr-04 16:22
MeterMan18-Apr-04 16:22 
QuestionC# global variable Concept ? Pin
sreejith ss nair18-Apr-04 3:22
sreejith ss nair18-Apr-04 3:22 
AnswerRe: C# global variable Concept ? Pin
CWIZO18-Apr-04 3:52
CWIZO18-Apr-04 3:52 
AnswerRe: C# global variable Concept ? Pin
Heath Stewart19-Apr-04 2:31
protectorHeath Stewart19-Apr-04 2:31 
Questioncan i get bytes info from DC directly ? Pin
fu018-Apr-04 2:04
fu018-Apr-04 2:04 
AnswerRe: can i get bytes info from DC directly ? Pin
Christian Graus18-Apr-04 13:54
protectorChristian Graus18-Apr-04 13:54 
GeneralRe: can i get bytes info from DC directly ? Pin
fu019-Apr-04 21:17
fu019-Apr-04 21:17 
GeneralRe: can i get bytes info from DC directly ? Pin
Christian Graus20-Apr-04 10:44
protectorChristian Graus20-Apr-04 10:44 
GeneralApplication Global Properties Pin
John Baird18-Apr-04 1:42
John Baird18-Apr-04 1:42 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 1:53
CWIZO18-Apr-04 1:53 
GeneralRe: Application Global Properties Pin
John Baird18-Apr-04 1:56
John Baird18-Apr-04 1:56 
GeneralRe: Application Global Properties Pin
CWIZO18-Apr-04 2:12
CWIZO18-Apr-04 2:12 
GeneralRe: Application Global Properties Pin
John Baird18-Apr-04 2:31
John Baird18-Apr-04 2:31 
Thanks for replying, but I'm still lost. I'm trying to load the values into a static structure now. The values are loaded, but when I try to access them from the watchwindow, I get the "out of score" error.

Pardon me, but here is the code. Can you tell me what's wrong?

<font size = 1>using System;
using System;
using AMS.Profile;


namespace MySpace
{
	/// <summary>
	/// Summary description for AppStartUp.
	/// </summary>
	public class AppStartUp
	{
		public AppStartUp()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public struct AppDefaults
		{
			public static string server = "";
			public static string dataBase = "";
			
			public static string adminPath = "c:\vsdevelop";
			public static string sqlConn = "";		
		}

		public static void SetAppDefaults()
		{
			Registry profile = new Registry();
			AppDefaults.server = profile.GetValue("DBSettings","DBServer","");
			AppDefaults.dataBase = profile.GetValue("DBSettings","DBName","");
			
			AppDefaults.adminPath = "c:\vsdevelop";
			AppDefaults.sqlConn = "SERVER=" + AppDefaults.server.ToUpper().Trim() + ";UID=uid; PWD=pwd;DATABASE=database";
		}
		
		public static void LoadProgramSettings()
		{
			SetAppDefaults();
			
		}
	}
}

</code>

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.