that is a great idea.  I tried it and it worked like a champ.  Thanks so
much.
 

Robert Hoenig
Application Programmer

Johann A. Krause, Inc.
305 W Delavan Drive
Janesville, WI 53547
Phone:     +1 (608) 741-4863
Fax:         +1 (608)  757-7066
E-Mail:    [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
Web:        www.gilmanassembly.com
<blocked::http://www.gilmanassembly.com/>  


 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Brunone
Sent: Monday, April 18, 2005 11:16 AM
To: [email protected]
Subject: re: [AspNetAnyQuestionIsOk] numerical drop down list


Hi Robert, 

   It looks like you're initializing i_count, but trying to use a
variable called i in your For loop. 

   Also, rather than populating an array, why not just add the list
items?  Something like this: 

Dim i_count as integer 
Dim sort_count() as integer 
If (reader.Read()) Then 

z_count = reader("SortCount") 

For i_count = 1 To z_count 

   myDDL.Items.Add(i_count) 

Next 

End If 

Cheers, 

Peter 

From: "Hoenig, Robert" [EMAIL PROTECTED] 

Hello 

This should be a fairly simple question. I'm trying to create a drop 
down list with a numerical list in it but it will depend on the count of

records sent from a table. I'm assuming this has to be done using an 
array or something like that. Here's my code 

Dim i_count as integer 
Dim sort_count() as integer 
If (reader.Read()) Then 

z_count = reader("SortCount") 

For i = 0 To z_count + 1 

i_count = i_count + 1 

sort_count(i) = i_count 

Next i 

End If 

Example: 
Table Count returns 3 
The dropdown should then have 1 2 3 as selections 

Table Count returns 6 
The dropdown should have 1 2 3 4 5 6 as selections 

I'm getting errors that i_count isn't set to an instance of an object. 
I'm doing this in VB for an ASP.Net web application. Any help would be 
greatly appreciated. 

Thank you 
Robert


[Non-text portions of this message have been removed]



________________________________

Yahoo! Groups Links


*       To visit your group on the web, go to:
        http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
          
*       To unsubscribe from this group, send an email to:
        [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
cribe> 
          
*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



This email has been scanned by the Gilman Engineering & Manufacturing, LLC
 Email Security System.


[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to