Click here to Skip to main content
15,891,184 members
Home / Discussions / C#
   

C#

 
QuestionGetting Processor Id Pin
M. J. Jaya Chitra22-Sep-07 2:32
M. J. Jaya Chitra22-Sep-07 2:32 
AnswerRe: Getting Processor Id Pin
Paul Conrad22-Sep-07 5:24
professionalPaul Conrad22-Sep-07 5:24 
AnswerRe: Getting Processor Id Pin
Nissim Salomon22-Sep-07 9:21
Nissim Salomon22-Sep-07 9:21 
Questionwhy my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:19
nicolus22-Sep-07 2:19 
AnswerRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:27
Lutosław22-Sep-07 2:27 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 2:35
nicolus22-Sep-07 2:35 
GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 2:45
Lutosław22-Sep-07 2:45 
GeneralRe: why my enum return value is in integer in C# Pin
nicolus22-Sep-07 3:05
nicolus22-Sep-07 3:05 
hi Gajatko,

i don't know why any alternative is not working in my m/c.

when i tried

MessageBox.Show(Enum.GetName(typeof(enumCatalogExportStandard ), ImportStandard));

gave me a null string as output.

i am sending the code snippets where ever i am using the enum related stuff in my code pls view.

public enum enumCatalogImportStandard { CatccImportAsISO, CatccImportAsFGDC, CatccImportAsNative };


enumCatalogImportStandard ImportStandard;

private void cmbTargetstd_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmbTargetstd.SelectedItem.ToString() == "ISO")
ImportStandard = enumCatalogImportStandard.CatccImportAsISO ;
else if (cmbTargetstd.SelectedItem.ToString() == "FGDC")
ImportStandard = enumCatalogImportStandard.CatccImportAsFGDC ;
else if (cmbTargetstd.SelectedItem.ToString() == "Native")
ImportStandard = enumCatalogImportStandard.CatccImportAsNative;

}
private void btnApply_Click(object sender, EventArgs e)
{
CImportCatalogRecordService.ImportCatalogRecordService objImpRecService = new CImportCatalogRecordService.ImportCatalogRecordService();

//below statement returning number instead of string

objImpRecService.ImportStandard = ImportStandard;

objImpRecService.InputFileName = txtImportFolder.Text + "\\" + Rec;
objImpRecService.CatalogConnection = con;
objImpRecService.Execute(out MetadataID);
}

this is all my code Pls view.




GeneralRe: why my enum return value is in integer in C# Pin
Lutosław22-Sep-07 3:52
Lutosław22-Sep-07 3:52 
QuestionUsing C++.net Interfaces in C# Pin
Sandeep Datta22-Sep-07 0:58
Sandeep Datta22-Sep-07 0:58 
AnswerRe: Using C++.net Interfaces in C# Pin
TJoe25-Sep-07 9:34
TJoe25-Sep-07 9:34 
GeneralRe: Using C++.net Interfaces in C# Pin
Sandeep Datta25-Sep-07 19:56
Sandeep Datta25-Sep-07 19:56 
QuestionHow add rows and column into DataTable Pin
That's Aragon22-Sep-07 0:52
That's Aragon22-Sep-07 0:52 
AnswerRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 0:59
pmarfleet22-Sep-07 0:59 
GeneralRe: How add rows and column into DataTable [modified] Pin
That's Aragon22-Sep-07 1:18
That's Aragon22-Sep-07 1:18 
GeneralRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 1:40
pmarfleet22-Sep-07 1:40 
GeneralRe: How add rows and column into DataTable Pin
That's Aragon22-Sep-07 1:48
That's Aragon22-Sep-07 1:48 
GeneralRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 1:54
pmarfleet22-Sep-07 1:54 
GeneralRe: How add rows and column into DataTable Pin
Lutosław22-Sep-07 2:09
Lutosław22-Sep-07 2:09 
Questiondouble vs float in performance Pin
small_programmer22-Sep-07 0:46
small_programmer22-Sep-07 0:46 
AnswerRe: double vs float in performance Pin
Colin Angus Mackay22-Sep-07 1:14
Colin Angus Mackay22-Sep-07 1:14 
GeneralRe: double vs float in performance Pin
small_programmer22-Sep-07 2:10
small_programmer22-Sep-07 2:10 
GeneralRe: double vs float in performance Pin
Paul Conrad22-Sep-07 5:02
professionalPaul Conrad22-Sep-07 5:02 
GeneralRe: double vs float in performance Pin
Luc Pattyn22-Sep-07 5:38
sitebuilderLuc Pattyn22-Sep-07 5:38 
GeneralRe: double vs float in performance Pin
Paul Conrad22-Sep-07 5:42
professionalPaul Conrad22-Sep-07 5:42 

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.