Library tutorials & articles
For...Next statement
By James Crowley, published on 14 Jul 2001
Syntax
The For...Next statement uses the following syntax:
For countervariable = start To end [Step increment]
Statement
Next [countervariable]
The code in brackets may be omitted. start and end are both numbers, increment is also a number, and counter is a variable.
Related articles
Related discussion
-
VB6 Runtime error 381 subsript out of range Error
by Uncle (2 replies)
-
passing and reading parameters from using Shell
by jigartoliya (0 replies)
-
Convert C++ code to VB6
by mawcot (4 replies)
-
listbox scrollbar
by Dennijr (10 replies)
-
Can you describe Above simple VB6 code?
by pramodmca09 (0 replies)
Related podcasts
-
Christian Beauclair
14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...
first, I know what you mean by circular reference but in the way excel means it is that a circular reference is a feedback loop... and any programming that allows this usualy crashes
So... lets see what you want to perform.
we are creating the value of "C" from both "A" and "B"
we are creating the value of "B" from both "A" and "C"
we are creating the value of "A" from both "B" and "C"
It cant work
you cant create a value from nothing - to make anything you must add something to it to create it
ie. think of it this way - your mum and dad created you, thats an equation
if Mum = A and Dad = B and You are C then
A + B = C
Ok, so... now this is just an equation and dont get all religious on me but lets say you wanted to do the following equation
Mum + Son = Dad
or Son + Dad = Mum
Since Son is a product of Mum and Dad you cant use that product to create its source
Why would you need this equation, im curious?
I need to create an If...Then loop because I need an equation such as a * b = c and a / c = b and b / c = a where the user types in 2 of the variables in text boxes and some proccess (such as a button click) would calculate the result. At the moment I keep getting the syntax wrong (am quite new to programing) so it never works
What exactly do you mean by a circular reference...? (I know what you mean in reference to Excel, but I'm not sure how'd that translate to another language...)
Is it possible to create a circular reference (in any programming language), because I know that Excel won't do it?
This thread is for discussions of For...Next statement.