Click here to Skip to main content
15,896,269 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Excel Data to Sql Database Pin
DrukenProgrammer9-Sep-08 9:11
DrukenProgrammer9-Sep-08 9:11 
AnswerRe: Excel Data to Sql Database Pin
Wendelius9-Sep-08 9:21
mentorWendelius9-Sep-08 9:21 
GeneralRe: Excel Data to Sql Database Pin
DrukenProgrammer9-Sep-08 9:31
DrukenProgrammer9-Sep-08 9:31 
GeneralRe: Excel Data to Sql Database Pin
Wendelius9-Sep-08 9:36
mentorWendelius9-Sep-08 9:36 
Question[Message Deleted] Pin
Rafone9-Sep-08 6:51
Rafone9-Sep-08 6:51 
AnswerRe: Arrays in VB Pin
Gregory Gadow9-Sep-08 7:41
Gregory Gadow9-Sep-08 7:41 
AnswerRe: Arrays in VB Pin
Rafone9-Sep-08 8:35
Rafone9-Sep-08 8:35 
GeneralRe: Arrays in VB Pin
Gregory Gadow9-Sep-08 12:03
Gregory Gadow9-Sep-08 12:03 
Ah, so your question is, "I have an array; how do I pass it as a parameter?" Declare your drawing subroutine like this:

Private Sub PlotPoints(ByVal Points As Double())

    (Code goes here)

End Sub
You will notice the opening and closing parentheses after the As Double part. That tells the compiler to expect an array of Double (or whatever type) rather than a single value.

If you have a complex data type -- your point data is in the form of (x coordinate, y coordinate) -- you might find it easier to create a class, then generate and pass a list:

Public Class MyPoint
    Public XCoord As Double
    Public YCoord As Double
End Class

Private Sub PlotPoints(ByVal Points As List(Of MyPoint))

End Sub
I've been doing .Net for so long at this point that I tend to prefer lists over arrays.
AnswerRe: Arrays in VB Pin
Rafone9-Sep-08 12:03
Rafone9-Sep-08 12:03 
QuestionImporting XLS file to DataTable Pin
Codemonkey859-Sep-08 5:10
Codemonkey859-Sep-08 5:10 
AnswerRe: Importing XLS file to DataTable Pin
dan!sh 9-Sep-08 5:30
professional dan!sh 9-Sep-08 5:30 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 5:36
Codemonkey859-Sep-08 5:36 
GeneralRe: Importing XLS file to DataTable Pin
dan!sh 9-Sep-08 5:48
professional dan!sh 9-Sep-08 5:48 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 6:20
Codemonkey859-Sep-08 6:20 
GeneralRe: Importing XLS file to DataTable Pin
dan!sh 9-Sep-08 9:13
professional dan!sh 9-Sep-08 9:13 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:23
Codemonkey859-Sep-08 9:23 
AnswerRe: Importing XLS file to DataTable Pin
DrukenProgrammer9-Sep-08 8:58
DrukenProgrammer9-Sep-08 8:58 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:05
Codemonkey859-Sep-08 9:05 
GeneralRe: Importing XLS file to DataTable Pin
DrukenProgrammer9-Sep-08 9:12
DrukenProgrammer9-Sep-08 9:12 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:23
Codemonkey859-Sep-08 9:23 
GeneralRe: Importing XLS file to DataTable Pin
DrukenProgrammer9-Sep-08 9:34
DrukenProgrammer9-Sep-08 9:34 
GeneralRe: Importing XLS file to DataTable Pin
Codemonkey859-Sep-08 9:43
Codemonkey859-Sep-08 9:43 
Questionform name as a property of a custom control Pin
Randana9-Sep-08 4:38
Randana9-Sep-08 4:38 
AnswerRe: form name as a property of a custom control Pin
Manas Bhardwaj9-Sep-08 4:40
professionalManas Bhardwaj9-Sep-08 4:40 
GeneralRe: form name as a property of a custom control Pin
Randana9-Sep-08 4:45
Randana9-Sep-08 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.