login about faq


Hey everyone! Im making a program that tells the time here and then the time in korea, I have the codes as

Label1.text = TimeVale(Now) Label2.text = ??????????

Obviously, I need the code for label 2.

I cant just put Label2.text = Timevalue(Now + 9)

THanks for reading and thanks in advance for any answer.

asked Jun 17 '11 at 15:38

guthix0009's gravatar image

guthix0009
136161721


str tme = Timevalue(Now)
int num = val(str) + 6

sorry if it is in wrong syntax, I don't know vb, but I do know google, trust me, questions like this shouldn't go into this... Split your problems up into simple ones then ask google: http://www.google.com.au/search?rlz=1C1LAVA_enAU377AU377&sourceid=chrome&ie=UTF-8&q=vb+string+to+int I'm not trying 2 call u lazy, I always do what u did, I'm just trying to help u help yourself

answered Jun 18 '11 at 13:45

falconmick's gravatar image

falconmick
1112

btw, I also googled http://www.google.com.au/search?hl=en&rlz=1C1LAVA_enAU377AU377&q=Timevalue+vb&aq=f&aqi=g4g-v1g-sv1g-v1g-sv1g-v2&aql=&oq= because I wanted to find out what was the return value of that function, I found it was string, that is why you cant + 6... So always know your return values and don't try to to mathematical operations inside a texbox object... The texbox object is made to store a textual output primarily, it might be used to read so that you make apend to the textbox, but you should have a seperate data type storing the data to be put into the textbox so that you'r code is abstract.

(Jun 18 '11 at 13:48) falconmick falconmick's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Join Us in the Chat Room

Tags:

×44
×41
×22

Asked: Jun 17 '11 at 15:38

Seen: 1,152 times

Last updated: Jun 18 '11 at 13:48