Just started looking into Visual C# and im getting stuck already. Anyone know how to convert strings to integers and visa-versa? Basicly the same thing as to_char or to_number in SQL. Im sure it must be simple but for the life of me cant figure it out. I would say im rather good at understanding visual basic but VB was very flexable with integers and strings so i never had this problem.
thanks
Noob. Visual C# question: how do I convert integers to strings and visa-versa?
to convert int to string you can simply do
intvariable.ToString()
to convert string to int use
Convert.ToInt32(stringvar)
customer satisfaction survey
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment