User Name
Password
Remember Me?
Planetarion Forums
>
Non Planetarion Discussions
>
Programming and Discussion
An ASP Query
Register
FAQ
Members List
Calendar
Arcade
Today's Posts
Search
Search Forums
Advanced Search
Go to Page...
View First Unread
Thread Tools
Display Modes
23 Sep 2004, 11:39
#
1
JammyJim
Godfather
Join Date: May 2000
Location: England
Posts: 5,185
An ASP Query
Its probably a very simple answer but im unsure as to whether such 'basic' advice is on the net...
so ill ask here
If opt = "1" then
a1 = a1 + 10
a2 = a2 + 10
a3 = a3 + 20
a4 = a4 + 30
end if
do i need the a1 = bit?
could it just be
if opt = "1" then
a1 + 10
a2 + 10
a3 + 20
a4 + 30
end if
???
__________________
Forum Administrator
Mail :
[email protected]
// IRC : #forums
__________________
It's not personal, it's just business.
JammyJim
View Public Profile
Visit JammyJim's homepage!
Find More Posts by JammyJim
23 Sep 2004, 12:12
#
2
wu_trax
Registered User
Join Date: Jan 2003
Posts: 4,290
Re: An ASP Query
i have no idea about asp, but in some laguages you could do 'a1+=10'
__________________
im not tolerant, i just dont care.
wu_trax
View Public Profile
Find More Posts by wu_trax
23 Sep 2004, 12:53
#
3
queball
Ball
Join Date: Oct 2001
Posts: 4,410
Re: An ASP Query
VB6 doesn't have an increment operator but VB.NET does. Just "a1 + 10" will either give an error or not do anything, try it.
queball
View Public Profile
Find More Posts by queball
23 Sep 2004, 13:33
#
4
pablissimo
Henry Kelly
Join Date: Apr 2000
Posts: 7,374
Re: An ASP Query
It'll say that it's not a statement, I expect.
__________________
You're now playing ketchup
pablissimo
View Public Profile
Find More Posts by pablissimo
23 Sep 2004, 15:09
#
5
JammyJim
Godfather
Join Date: May 2000
Location: England
Posts: 5,185
Re: An ASP Query
i did a few tests
only way i can get it to work is
a = a + 1
:/
nm its all done now. just took alot longer ....
__________________
Forum Administrator
Mail :
[email protected]
// IRC : #forums
__________________
It's not personal, it's just business.
JammyJim
View Public Profile
Visit JammyJim's homepage!
Find More Posts by JammyJim
23 Sep 2004, 17:39
#
6
JetLinus
Friendly geek of GD :-/
Join Date: Nov 2000
Location: On my metal roid
Posts: 923
Re: An ASP Query
What about
:
Code:
If opt = "1" Then a(1) = a(1) + 10 For i = 2 To 4 a(i) = a(i) + (i - 1) * 10 Next i End If
lol
__________________
[
»
] Entropy increases! :-/
JetLinus
View Public Profile
Visit JetLinus's homepage!
Find More Posts by JetLinus
«
Previous Thread
|
Programming and Discussion
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Rate This Thread
You have already rated this thread
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Planetarion Administration
Announcements
Forums Issues
Planetarion Help Desk
Planetarion Related Forums
Planetarion Discussions
Departing PA Messages
Planetarion Race History
Planetarion Suggestions
Planetarion Change Tracker
Alliance Discussions
Alliance Recruitment
Strategic Discussions
Non Planetarion Discussions
General Discussions
Clownshoe Corner
Programming and Discussion
Hardware and Tech Support
Roleplaying
All times are GMT +1. The time now is
00:12
.
-- Planetarion 2.0
---- Planetarion 2.0 - Nuclear Ashes
------ Planetarion 2.0 - Mobile Infantry
-- Round 10 Default
-- Round 8-9 Default
-- Round 5-7 Default
-- Greenpepper
-- LairyFish
-- Dreammaker
-- Xmas Style
-- Retro v1
-- Retro v2
-- Pro-Vizion
-- AlienSkin
-- Pro-Vizion(Small)
-- Pro Vizion Thin
Planetarion
-
Top
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018