Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to restrict other users to update the data, while one is doing updation in disconnected mode of database Pin
Krish Agn26-May-08 22:59
Krish Agn26-May-08 22:59 
GeneralRe: How to restrict other users to update the data, while one is doing updation in disconnected mode of database Pin
Ashfield27-May-08 21:50
Ashfield27-May-08 21:50 
Questionconvert C# 2005 Express Solution to Pro Pin
half-life26-May-08 19:17
half-life26-May-08 19:17 
AnswerRe: convert C# 2005 Express Solution to Pro Pin
Christian Graus26-May-08 19:26
protectorChristian Graus26-May-08 19:26 
GeneralRe: convert C# 2005 Express Solution to Pro Pin
half-life26-May-08 19:52
half-life26-May-08 19:52 
GeneralRe: convert C# 2005 Express Solution to Pro Pin
hairy_hats16-Jun-08 2:13
hairy_hats16-Jun-08 2:13 
AnswerMSI Plessey Check digit calculation Pin
wi_mohitmca26-May-08 18:52
wi_mohitmca26-May-08 18:52 
GeneralRe: MSI Plessey Check digit calculation Pin
D i x y26-May-08 18:55
D i x y26-May-08 18:55 
private string msiplessey(string abc)
{
string value = "";
string values = "";
string adds = "";
string evenvalues = "";
string evenval = "";
string evenadds = "";
string resultadd = "";
string fval = "";
long add = 0;
long abcd;
long evenadd = 0;
long result;
int checkvalue = 0;
int finalresult;

for (int i = abc.Length - 1; i > -1; i -= 2)
{
value += abc.Substring(i, 1);
}
for (int j = value.Length - 1; j >= 0; j--)
{
values += value.Substring(j, 1);
}
abcd = (Convert.ToInt64(values) * 2);
string oddvalue = abcd.ToString();
for (int k = 0; k < oddvalue.Length; k++)
{
adds = oddvalue.Substring(k, 1);
add = add + Convert.ToInt64(adds);
}
for (int l = abc.Length - 2; l > -1; l -= 2)
{
evenvalues += abc.Substring(l, 1);
}
for (int m = evenvalues.Length - 1; m >= 0; m--)
{
evenval += evenvalues.Substring(m, 1);
}
for (int n = 0; n < evenval.Length; n++)
{
evenadds = evenval.Substring(n, 1);
evenadd = evenadd + Convert.ToInt64(evenadds);
}
result = add + evenadd;
resultadd = result.ToString();
finalresult = Convert.ToInt32(resultadd.Length);
fval = resultadd.Substring(finalresult - 1);
checkvalue = (10 - (Convert.ToInt32(fval)));
if (checkvalue == 10)
{
checkvalue = 0;
}
else
{
checkvalue = (10 - (Convert.ToInt32(fval)));
}
return checkvalue.ToString();
}
QuestionWhat's the difference between string and String class ? Pin
Mohammad Dayyan26-May-08 13:27
Mohammad Dayyan26-May-08 13:27 
AnswerRe: What's the different between string and String class ? Pin
Colin Angus Mackay26-May-08 13:49
Colin Angus Mackay26-May-08 13:49 
GeneralRe: What's the different between string and String class ? Pin
Mohammad Dayyan26-May-08 14:12
Mohammad Dayyan26-May-08 14:12 
GeneralRe: What's the different between string and String class ? Pin
MarkB77726-May-08 15:20
MarkB77726-May-08 15:20 
GeneralRe: What's the different between string and String class ? Pin
Roger Alsing26-May-08 20:17
Roger Alsing26-May-08 20:17 
QuestionC# Equivalent to Java "Properties" Class Pin
K.L.K26-May-08 12:40
K.L.K26-May-08 12:40 
AnswerRe: C# Equivalent to Java "Properties" Class Pin
Colin Angus Mackay26-May-08 12:53
Colin Angus Mackay26-May-08 12:53 
GeneralRe: C# Equivalent to Java "Properties" Class Pin
K.L.K26-May-08 12:55
K.L.K26-May-08 12:55 
AnswerRe: C# Equivalent to Java "Properties" Class Pin
buchstaben26-May-08 21:07
buchstaben26-May-08 21:07 
Questionload user predefined control at runtime created form Pin
redspiderke26-May-08 11:11
redspiderke26-May-08 11:11 
AnswerRe: load user predefined control at runtime created form Pin
Anthony Mushrow26-May-08 13:05
professionalAnthony Mushrow26-May-08 13:05 
GeneralRe: load user predefined control at runtime created form Pin
redspiderke27-May-08 2:02
redspiderke27-May-08 2:02 
QuestionWrite binaryfile to table/dataset and then to XMLFile .... Pin
MaWeRic26-May-08 9:29
MaWeRic26-May-08 9:29 
AnswerRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
Giorgi Dalakishvili26-May-08 9:46
mentorGiorgi Dalakishvili26-May-08 9:46 
AnswerRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
Peter Josefsson Sweden27-May-08 16:01
Peter Josefsson Sweden27-May-08 16:01 
GeneralRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
MaWeRic27-May-08 22:24
MaWeRic27-May-08 22:24 
GeneralRe: Write binaryfile to table/dataset and then to XMLFile .... Pin
Peter Josefsson Sweden28-May-08 2:12
Peter Josefsson Sweden28-May-08 2:12 

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.