Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff30-Apr-16 5:59
mveOriginalGriff30-Apr-16 5:59 
AnswerRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 6:32
professionalZurdoDev29-Apr-16 6:32 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 8:33
wilcoten29-Apr-16 8:33 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 8:52
professionalZurdoDev29-Apr-16 8:52 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 9:02
wilcoten29-Apr-16 9:02 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 9:08
professionalZurdoDev29-Apr-16 9:08 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 9:21
wilcoten29-Apr-16 9:21 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 9:32
professionalZurdoDev29-Apr-16 9:32 
wilcoten wrote:
Argument 1: cannot convert from string to int"

Any suggestions for this situation?
Yes, take a deep breath and slow down. Wink | ;) Just read the error. It says you cannot convert a string to an int. And it tells you argument 1.

So, look at your function getLEBridgeNumber. It is declared to take an integer as the first argument. However, you passed in Life_path_outcome.Text and the Text property of the control is a string. So, you need to convert the string to an integer. An easy way is to simple do Convert.ToInt32(Life_path_outcome.Text). That converts whatever is in the textbox to an integer. You really want to check your input because this will fail if someone does not type a number in the textbox but for now this should work for you.
There are only 10 types of people in the world, those who understand binary and those who don't.

GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 11:07
wilcoten29-Apr-16 11:07 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
Brisingr Aerowing29-Apr-16 11:22
professionalBrisingr Aerowing29-Apr-16 11:22 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 12:05
wilcoten29-Apr-16 12:05 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 20:35
wilcoten29-Apr-16 20:35 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
ZurdoDev29-Apr-16 12:07
professionalZurdoDev29-Apr-16 12:07 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
wilcoten29-Apr-16 12:21
wilcoten29-Apr-16 12:21 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
Brisingr Aerowing30-Apr-16 12:32
professionalBrisingr Aerowing30-Apr-16 12:32 
AnswerRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
OriginalGriff29-Apr-16 5:03
mveOriginalGriff29-Apr-16 5:03 
GeneralRe: Help please, I have a error in this script, when I follow the suggestion their are more errors Pin
Pete O'Hanlon29-Apr-16 7:42
mvePete O'Hanlon29-Apr-16 7:42 
QuestionI add table into Control dataSet of XtraReport ? Pin
Member 245846728-Apr-16 20:57
Member 245846728-Apr-16 20:57 
AnswerRe: I add table into Control dataSet of XtraReport ? Pin
Gerry Schmitz29-Apr-16 6:45
mveGerry Schmitz29-Apr-16 6:45 
AnswerRe: I add table into Control dataSet of XtraReport ? Pin
Eddy Vluggen29-Apr-16 6:47
professionalEddy Vluggen29-Apr-16 6:47 
AnswerRe: I add table into Control dataSet of XtraReport ? Pin
Marco Bertschi3-May-16 21:30
protectorMarco Bertschi3-May-16 21:30 
Questionwhat do you know the name of this control ? Pin
Member 245846728-Apr-16 20:37
Member 245846728-Apr-16 20:37 
AnswerRe: what do you know the name of this control ? Pin
Pete O'Hanlon28-Apr-16 23:42
mvePete O'Hanlon28-Apr-16 23:42 
QuestionSerializing a ResourceDictionary to binary and back Pin
Imagiv28-Apr-16 8:25
Imagiv28-Apr-16 8:25 
AnswerRe: Serializing a ResourceDictionary to binary and back Pin
Matt T Heffron28-Apr-16 14:48
professionalMatt T Heffron28-Apr-16 14:48 

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.