blah blah blah is here! blah blah » Close

0
votes
1 answers

c# unit conversion from .txt file

Please can someone help? I need to create a program that reads a list of units and names "eg ounce,gram,28" then asks for a user input, and then converts and displays the result. So far all i have been able to do is get it to read ...

1
votes
2 answers

Problem with int.Parse

My code: private void tbPagos_Click(object sender, EventArgs e) { iPosact = dgView.CurrentRow.Index; pId = tc.Rows[iPosact]["id"].ToString(); pNombre = tc.Rows[iPosact]["nombre"].ToString(); pSaldo = int.Pars ...

1
votes
2 answers

In javascript, how to convert a string to a number

Rick_A
761

If I have a variable like: [code]var age = "30";[/code] And now if I want to increment this value, I have to convert the string to a number. I read that one way to do it is to multiple the string value by 1 like: [code ...

0
votes
0 answers

XML conversion

Hi, Could anyone please help me to convert XML to XML by using XSLT? My input xml is: <Root> <Students> <Student> <RegId>12001</RegId> <Absences> <Absence> ...

0
votes
1 answers

Best way to convert large decimal value(string type) to Hexadecimal in C#??

What is the best way to convert large decimal value(string type) to Hexadecimal in C#? I know this may sound stupid but I just need to do this operation. Ex: string strDecValue = "12345678901234567890123456789012345678901234 ...

0
votes
1 answers

the exploitation of risk averse cultures

Is there a risk-averse culture definition? A risk-averse culture is probably unambiguous and will only accept 4 digit years and only in a W3C/ISO kind of date format which is year/month/day. Note that to implement your own for dates can ...

0
votes
2 answers

More conversion

Hello again. Im trying to write a program to convert different units of measurements. So the user would input 5,ounce,gram and the program would convert from ounces to grams. It needs to be able to cope with any common measuremen ...

0
votes
1 answers

Problems with double conversion C#

Hi, i don't understand: [code]label1.Text = dsLog.Tables[3].Rows[i][0].ToString(); //Output: 1.00[/code] but when i want to cast to double [code]double sas_sas = double.Parse(dsLog.Tables[3].Rows[i][0].ToString()); label1.Text ...

0
votes
1 answers

Displaying double value in Textbox

Following is the code: private void button1_Click(object sender, EventArgs e) { Globals.Turbo.GetPosition(Globals.device_number, 1, 0, out Globals.motorPos); X_Encoder_Pos.Text = Global ...

2
votes
1 answers

If I have a string, how can I convert it to an enumeration?

Rick_A
761

If I have an enumeration like: [code] public enum UserType { Anonymous = 1, Registered = 2, Pro = 3 } [/code] And say I have a string: [code] string myType = "Registered"; [/code] Would it ...

Feedback