[nsbasic-ce] Re: Convert String To Integer And Vice-Versa

2010-06-10 Thread Nathan
But how to convert the integer to a string that I could use with the txtVisor.Text? PS: Remember that I need to convert from string to integer and to string. --- In nsbasic-ce@yahoogroups.com, "Woody & Yuni Ho" wrote: > > Sorry...keep thinking vb. > > Dim a > > A=cint(txtstr) > > > Woody wi

Re: [nsbasic-ce] Re: Convert String To Integer And Vice-Versa

2010-06-10 Thread George Henne
Have you checked the Language Reference? Please see "Conversions". The answer is also in Tutorial 3, which I have referred you to already. >But how to convert the integer to a string that I could use with the >txtVisor.Text? > >PS: Remember that I need to convert from string to integer and to st

[nsbasic-ce] Re: Convert String To Integer And Vice-Versa

2010-06-10 Thread Nathan
Thanks veery much! All that I need to do is CStr(result) :) --- In nsbasic-ce@yahoogroups.com, "George Henne" wrote: > > Have you checked the Language Reference? > > Please see "Conversions". > > The answer is also in Tutorial 3, which I have referred you to already. > > >But how to convert th

[nsbasic-ce] Re: Expected End Of Statement

2010-06-10 Thread Nathan
Oh! This is just because I used too much VB. Thanks very reminding me. --- In nsbasic-ce@yahoogroups.com, "George Henne" wrote: > > Please look at the Language Reference. > > The Next statement should not have anything after it. > > > > > > >Hello, > > I'm using this code here to do a loop, a

[nsbasic-ce] Expected End Of Statement

2010-06-10 Thread Nathan
Hello, I'm using this code here to do a loop, and(as I think) do something like a exponential: Sub btElev_ClickFor iLoop = 0 To number2 result = number1 * number1Next iLoop End Sub But when I tried to execute this code, I got this error: Microsoft VBScript compilation error - line 1

Re: [nsbasic-ce] Expected End Of Statement

2010-06-10 Thread George Henne
Please look at the Language Reference. The Next statement should not have anything after it. > > >Hello, > I'm using this code here to do a loop, and(as I think) do something >like a exponential: >Sub btElev_Click > For iLoop = 0 To number2 > result = number1 * number1 > Next iLoop >End