Hi All,
I need a function that only allows Increments by 10, 20, 30.....
How do I achieve this in VB Script?
Any help is appreciated.
TIA,
Santosh 5 1223
"someone" <so*****@somewhere.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl... Hi All,
I need a function that only allows Increments by 10, 20, 30.....
How do I achieve this in VB Script?
Any help is appreciated.
TIA,
Public Function Inc10(inVal)
Inc10 = inVal + 10
End Function
Public Function Inc20(inVal)
Inc20 = inVal + 20
End Function
Public Function Inc30(inVal)
Inc30 = inVal + 30
End Function
--
compatible web farm Session replacement for Asp and Asp.Net http://www.nieropwebconsult.nl/asp_session_manager.htm
Santosh
someone wrote on 30 dec 2004 in microsoft.public.inetserver.asp.general: I need a function that only allows Increments by 10, 20, 30.....
How do I achieve this in VB Script?
function myIncrBy(x,y)
if y=10 or y=20 or y=30 then x = x + y
myIncr = x
end function
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
look at Mod()
--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"someone" <so*****@somewhere.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl... Hi All,
I need a function that only allows Increments by 10, 20, 30.....
How do I achieve this in VB Script?
Any help is appreciated.
TIA,
Santosh
if your going to use it with a 'for' loop you can use step.
example;
for i = 0 to 80 step 10
response.write(i) & "<br />"
next
"someone" <so*****@somewhere.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl... Hi All,
I need a function that only allows Increments by 10, 20, 30.....
How do I achieve this in VB Script?
Any help is appreciated.
TIA,
Santosh
Also,
Function Increment(base, additive)
if additive mod 10 = 0 and additive > 0 then
increment = base+additive
end if
end function
might work...
"someone" <so*****@somewhere.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Hi All,
I need a function that only allows Increments by 10, 20, 30.....
How do I achieve this in VB Script?
Any help is appreciated.
TIA,
Santosh This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: anonymousnerd |
last post by:
Apologies if this question seems stupid: How does one write a
function that increments a value in Python? When I tried, the variable
never changed.
The session went like this:
>>> def...
|
by: Nicolla MacPherson |
last post by:
Hi
I'm a newbie and want to display a pattern that will increment with each
line of display.
I thought i might be able to count the rows and use that info to increment
my display.
I've got my...
|
by: Nick |
last post by:
Is it possible to have multiple auto increments in one column? Say I
have two tables...
1. table 'messageboards' with fields ('id' , 'name')
2. table 'messagethreads' with fields ('id' ,...
|
by: Jim Fox |
last post by:
I never noticed this myself. Had a user bring this up when then were
updating a field that is a NUMBER, LONG INTEGER field.
In successive rows, they entered into.
3 (typed in row 1)
4 (typed...
|
by: tlyczko |
last post by:
I am looking to validate time worked in quarter-hour increments, e.g.
..25, .5, .75, 1.0, etc. etc.
I know I can use a modulo statement for the evaluation but I could not
find an explanation of...
|
by: forum |
last post by:
Hi!
what's the standard way for a "for" loop with float increments?
Anton
|
by: Joe |
last post by:
Is there a formula or algorhythm I can use to round up a series of numbers
in increments of 100?
36 =100
89 =100
102 =200
112 =200
5 =100
225 =300
|
by: brokensword008 |
last post by:
Hello everyone. I'm new here. I have a problem with Expression Web.
I have more than a hundred pages created from my self-made template. My website sells products so I subscribed to RomanCart for...
|
by: phpuser123 |
last post by:
I have a page that increments my session everytime,my passowrd and username are not correct..Buteven when I am reloading my page,the session is beinng incremented and as such I amgetting a defective...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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,...
|
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...
| | |