a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

set initialize value in the variable

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> set initialize value in the variable
Page: [1]
 
accessman

 

Posts: 74
Joined: 9/13/2005
Status: offline

 
set initialize value in the variable - 9/16/2005 12:04:42   
Hi: how can I set the initialize value in the variable
For example:

Global count As Long = 0 // how can I set this one, it doesn't work
Function count()
.........
count=count + 1
End Sub

Thanks.
dpf

 

Posts: 7126
Joined: 11/12/2003
From: India-napolis
Status: offline

 
RE: set initialize value in the variable - 9/16/2005 12:07:37   
what language are yo using? do you really want the variable to be global or shouldnt it, if a counter, be local to the function? also, not a good idea to use the same name for a variable as a function name. use different names and initialize the variable inside the function

_____________________________

Dan

(in reply to accessman)
accessman

 

Posts: 74
Joined: 9/13/2005
Status: offline

 
RE: set initialize value in the variable - 9/16/2005 12:15:50   
visual basic code
I want to do like this:
id
1
1
2
2
3
3
....

with auto-increment, and appear 2 times.

(in reply to dpf)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> ASP and Database >> set initialize value in the variable
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts