473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

For 1 To 12 Statement With Interval

Hello again. This is easy, I think I just didn't explain it clearly. What is the syntax to make a For 1 To 12 statement skip from 1 to 4 to 8 to 12 instead of 1 - 12 sequentially? I have tried other means, but they are very ineffective and easily messed up by users. Thanks.
Jul 12 '07 #1
4 988
Killer42
8,435 Expert 8TB
Hello again. This is easy, I think I just didn't explain it clearly. What is the syntax to make a For 1 To 12 statement skip from 1 to 4 to 8 to 12 instead of 1 - 12 sequentially? I have tried other means, but they are very ineffective and easily messed up by users. Thanks.
You need to add a Step clause to the For statement. Check the doco for details.

I suspect you have your numbers a bit mixed up, though. From 1 to 4 is a jump of 3, then the others are jumps of 4. That may be what you want, but it's more likely that you will want all the steps the same size.
Jul 13 '07 #2
You need to add a Step clause to the For statement. Check the doco for details.

I suspect you have your numbers a bit mixed up, though. From 1 to 4 is a jump of 3, then the others are jumps of 4. That may be what you want, but it's more likely that you will want all the steps the same size.
Thanks a lot, I'll see if I can't figure it out now.
Jul 13 '07 #3
hariharanmca
1,977 1GB
Thanks a lot, I'll see if I can't figure it out now.

you can use


Expand|Select|Wrap|Line Numbers
  1. for i = 1 to 12 step 4
  2.       Do some thing.....
  3. next i
Jul 13 '07 #4
I asked the question in a new post.
Jul 13 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: FuRiOuS1 | last post by:
Hi, i need some help with a select statement, i tried many different MySQL fucntions and looked through the MySQL manual, and it didnt help me any. What i want to do is select all rows from a table...
7
by: mark | last post by:
Access 2000: I creating a report that has a record source built by the user who selects the WHERE values. An example is: SELECT * FROM CHARGELOG WHERE STDATE Between #10/27/2003# And...
19
by: rdavis7408 | last post by:
Hello, I have four textboxes that the user enters the price per gallon paid at the pump, the mileage per gallon and I would like to then calculate the cost per gallon and use a switch statement to...
20
by: Kurt | last post by:
Below is a class that can accessed from multiple threads and I want the class to be thread safe. I have a private timer member whose interval can be changed by different threads. Which is the correct...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.