msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

for (i=n;i<=n;i--)

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
sunita



Joined: 04 Oct 2007
Posts: 1

PostPosted: Mon Jun 05, 2006 5:19 pm    Post subject: for (i=n;i<=n;i--) Reply with quote

Hi All,
how do I write in vb script Please send me a reply as soon as possible.
Sunita

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Bob Butler



Joined: 04 Oct 2007
Posts: 1325

PostPosted: Mon Jun 05, 2006 10:56 am    Post subject: Re: for (i=n;i<=n;i--) Reply with quote

"sunita" wrote in message @uwe
> Hi All,
> how do I write in vb script Please send me a reply as soon as
> possible. Sunita

I'm not sure what you are asking.... for/next syntax in VB is
for = To [Step ]

the literal translation of your line would be
for i=n to n step -1
' code
next

but since the "loop" can only excute once with those limits a better
translation would be
i=n
'code

--
Reply to the group so all can participate
VB.Net: "Fool me once..."

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group