Oxiegen 88 Basically an Occasional Poster Featured Poster

Run the Disk CleanUp utility.
You can find it in Start->All Programs->Accessories->System Tools.

And perhaps you should remove any and all unused software, like toolbars and crap like that.
While you're at it, install and run SpyBot Search And Destroy. It will detect and remove any and most malware/spyware/crap-ware/tracking-cookies that has been installed both with or without your knowledge.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Well. There's the computer, the monitor, keyboard, mouse and a label printer.
And then there's the inventory software. Could be anything, even Excel.

The computer is used, among other things, to create and print labels for the books.
And it's also used for checking to see if a certain book is in stock and/or available.

What's the confusion about? :)

Oxiegen 88 Basically an Occasional Poster Featured Poster

Sometimes that's normal.
Variables and objects can be undefined until they are assigned something.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Using alert("I want to access value here! " + this.request[this.request.length - 1].callback); where you would like to use it, debug the code using any of the two methods I told you about and put a breakpoint on that line and create a Watch on the code that contains the value.

If the above code (this.request[yadda yadda) doesn't work, then try one of the other methods we've explored in this thread.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Have you tried debugging that line?
I know Chrome has sort of a built-in debugger. And Firefox has an addon called Firebug you can use.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Exactly.
Option 3.

Although. On further inspection you can see that the information you're looking for can be found in the request object. (this.request).
So, if you want that value you can read that object and get the last item by using the length property.

If I'm not completely off the track, this should work.

alert("I want to access value here! " + this.request[this.request.length - 1].callback);
Oxiegen 88 Basically an Occasional Poster Featured Poster

This question seems to have resolved itself.
But for reference. Take a look at this solution.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Oh, I see.
Then add your own variable among those already declared in the constructor.
And in the function you simply assign value to this.<yourvariable>.
And in extension read this.<yourvariable> in the alert.

Oxiegen 88 Basically an Occasional Poster Featured Poster

What version of Visual Studio is being referenced in the book?
And what version are you using?
If those are not the same, that might explain the difference in what you see.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Read through the text file line by line in a loop.
And for each iteration, declare the two labels and add them to the forms Control collection.

int counter = 0;
string line;
int lastKnownTop = 10; //Or whereever you want the first set of labels to be placed

System.IO.StreamReader file = new System.IO.StreamReader("path");
while ((line = file.ReadLine()) != null)
{
    Label ip = new Label();
    ip.Position(new Point(10, lastKnownTop));
    ip.Text = line;

    Label status = new Label();
    status.Position(new Point(25, lastKnownTop));
    status.Text = CheckStatus(ip).ToString();

    form1.Controls.Add(ip);
    form1.Controls.Add(status);

    lastKnownTop = (ip.Top + ip.Height) + 5;
}
file.Close();
Oxiegen 88 Basically an Occasional Poster Featured Poster

Take a look at this thread. It may be of some use to you.

Oxiegen 88 Basically an Occasional Poster Featured Poster

I'm thinking that the easiest way to grab information from multiple tables is to create a view in the SQL server.
And from your code you can call upon that as if it was a single normal table.
All the mixing and matching using joins is handled by the server, so you don't have to concerns yourself so much about it in code.
The only drawback is that you can't modify the view in any way. Only read.

Oxiegen 88 Basically an Occasional Poster Featured Poster

It depends really on what language you're using for developmen of software.
But most of them do support the use of command-line arguments.
And no. Those are not limited to command-oriented systems, but can be used in Windows programs as well.

This is how it's done in C++

int main(char* argv[]) {
}

or the more conventional way

int main(int argc, char* argv[]) {
}

This is how it's done in C#:

static void Main(string[] args)
{
}

And this is how it's done in VB:

Sub Main()
    Dim args() As String = Split(Command$, " ")
End Sub

And this is how it's done in VB.NET:

Module Module1
    Sub Main()
        Dim args() As String = My.Application.CommandLineArgs
    End Sub
End Module

Was this an answer to your question?

Oxiegen 88 Basically an Occasional Poster Featured Poster

I would suggest you start by grabbing a pen and paper and begin outlining what exactly your program is supposed to track, and what informaion might be needed to show and how to handle it.

Beyond that we can be more helpful when you get stuck on specific problems during development.

Oxiegen 88 Basically an Occasional Poster Featured Poster

I'm no javascript expert, but I don't think you can.
The variable value is an argument to the function, and can't be accessed from anywhere else.
But you can probably return value to an outside variable and use that in your alert.

var outsidevariable = variable.dosomething("evenmorebla", function(key, value)
{
   alert("key is '" + key ' "' and value is '" + value + "'");
   return value;
});

alert ("alert 2 : print and use value on the outside such as here: " + outsidevariable);
Oxiegen 88 Basically an Occasional Poster Featured Poster

I agree with JorgeM.
Those symptoms points towards a harddrive failure.
It's better to be safe than sorry, backup your data while you still can.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Then you should use the code I gave you.

ListView1.Items(reader.Item("PERSON")).Selected = True

Or at least read into a String variable first.

Dim strPERSON As String = reader.Item("PERSON").ToString()
ListView1.Items(strPERSON).Selected = True

I'm assuming that reader.Item("PERSON") contains a string of something that can be seen in the ListView.

Because as Poojavb said, SelectedItem is not a property of ListView.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Something like this:

Private Sub CopyToAccess(source As DataTable)
    Try
        Dim connString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Persist Security Info=False;"

        Dim accConnection As New OleDb.OleDbConnection(connString)
        Dim selectCommand As String = "SELECT <field1>, <field2> and so on FROM <table>"
        Dim accDataAdapter As New OleDb.OleDbDataAdapter(selectCommand, accConnection)

        Dim accCommandBuilder As New OleDb.OleDbCommandBuilder()
        accDataAdapter.InsertCommand = accCommandBuilder.GetInsertCommand()
        accDataAdapter.UpdateCommand = accCommandBuilder.GetUpdateCommand()

        Dim accDataTable As DataTable = source.Copy()

        ''Just to make sure, set the RowState to added to make sure an Insert is performed'
        'For Each row As DataRow In accDataTable.Rows'
        '    If row.RowState = RowState.Added Or RowSate.UnChanged Then'
        '        row.SetAdded()'
        '    End If'
        'Next'

        accDataAdapter.Update(accDataTable)
    Catch ex As Exception
    End Try
End Sub
Oxiegen 88 Basically an Occasional Poster Featured Poster

I'm thinking that the bottleneck in your code is that you're connecting to the URL on each cycle.
Wouldn't it work if you connect just once and perform the reading of the stream inside the While loop.

What I mean is, move the connection and configuration code to outside the first While but keep the reading of the responsestream inside it.
I'm also thinking that it could save you from having nested While loops.

Perhaps this could be of use: Reading the Response Stream Asynchronously

Oxiegen 88 Basically an Occasional Poster Featured Poster

Well. Considering that the job involves both development and system management.
Perhaps the title should be System Developer.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Assuming that the item is not already present in the ListView. :)

Oxiegen 88 Basically an Occasional Poster Featured Poster

Yeah. That code seem a bit cumbersome.
And you're not even using SLP, Admin or Pateint. So you can throw those away.
Also, in ASP.NET you can't use MsgBox. Add a Label and direct any output that that.
Try this instead.

 Public Sub LogIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim connStr As String = "Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Users\sony\Documents\Visual Studio 2010\Projects\SADA\SADA\App_Data\SADA2.mdf';Integrated Security=True;User Instance=True"
    Dim logID As String
    Dim PassW As String

    Dim con As New Data.SqlClient.SqlConnection(connStr)
    Dim dtLogin As New DataTable
    Dim daLogin As New Data.SqlClient.SqlDataAdapter("SELECT * FROM LoginTable WHERE LoginID = '" & TextBox1.Text & "' AND Password = '" & TextBox2.Text & "'", con)

    Try
        daLogin.Fill(dtLogin)

        If dtLogin.Rows.Count > 0 Then
            logID = dtLogin.Rows(0).Item(0)
            PassW = dtLogin.Rows(0).Item(1)

            Select Case dtLogin.Rows(0).Item(5).ToString()
                Case "S"
                    Response.Redirect("SLPMain.aspx", True)
                Case "A"
                    Response.Redirect("Admin.aspx", True)
                Case "P"
                    Response.Redirect("WebForm4.aspx", True)
            End Select
        Else
            'lblError.Text = "Username or Password incorrect, or no such user is registered."'
        End If
    Catch ex As Exception
    End Try
End Sub
Oxiegen 88 Basically an Occasional Poster Featured Poster

Nothing is given for free.
You have to at least try to do something yourself.
If you get stuck on something specific we'll all be happy to help.

Here's a tip. Browse the web for similar projects and software to get an idea of what you want your project to look and feel like.

Oxiegen 88 Basically an Occasional Poster Featured Poster

I'm no expert in Java.
But can you really assign an int to an instance of Track?
In the method setTrack(int trackNumber) you're assigning the argument to this.track which is an instance of Track.

And also, in the method getTrackName() you're returning this.trackName that doesn't seem to be declared anywhere.

I may be real off base here. But is that possible even for Java?

Oxiegen 88 Basically an Occasional Poster Featured Poster

This is a duplicate post.
Original thread

Oxiegen 88 Basically an Occasional Poster Featured Poster

This should help you.

ListView1.Items(reader.Item("PERSON")).Selected = True

This will only select the VERY first item

ListView1.Items(0).Selected = True
Oxiegen 88 Basically an Occasional Poster Featured Poster

Declare the menu outside the Form1_Load event and then instanciate it as a new MainMenu inside Form1_Load.

Public Class Form1
    Private mnuMain As MainMenu

    Private Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
        mnuMain = New MainMenu()

That will allow you to get access to the main menu from anywhere inside the Form1 code.

Oxiegen 88 Basically an Occasional Poster Featured Poster

By using a Try...Catch statement you can catch the error and do something about it.
It's a very useful debugging tool.

However, you don't have to enclose every single piece of altering code in it's own statement.
You can start the Try statement even before the line With Me and end it below the line End With, followed by the Catch statement with a messagebox displaying the error.

With On Error Resume Next, you won't know if an error occured and on what line.
So you have no way of knowing and thus can't do much about it.

Also.
Personally I feel that those types of error catching methods are depricated as they originate from the old-school VB type programming.
The Try...Catch statement is the .NET way.
That includes the use of MsgBox. Have you looked at MessageBox()?

Oxiegen 88 Basically an Occasional Poster Featured Poster

I second that. :)

Oxiegen 88 Basically an Occasional Poster Featured Poster

A string is rarely Nothing. But it can be empty.
Change the line If strTo Is Nothing Then to If String.IsNullOrEmpty(strTo) Then.
That should cover all the bases.

As a second thought, you should do the same for strFrom.
Include that in the If statement.

If String.IsNullOrEmpty(strTo) OrElse String.IsNullOrEmpty(strFrom) Then

Oxiegen 88 Basically an Occasional Poster Featured Poster

Add a form_closing event to you child form.
From there you can make the tab control visible while the child form is closing.

Protected Sub childForm_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
    If e.Cancel = False Then
        Me.Parent.<tabcontrol>.Visible = True
    End If
End Sub
Oxiegen 88 Basically an Occasional Poster Featured Poster

What is the exact error message?
Put a messagebox in the Catch statement: MessageBox.Show(ex.ToString)

Oxiegen 88 Basically an Occasional Poster Featured Poster

I found some more information regarding the removal and re-adding of the reference method I posted.

After you remove the reference from the project, you should also delete the auto-generated Excel interop assembly in the application's bin folder.
Then re-add the reference to the project.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Try this:

Imports Excel = Microsoft.Office.Interop.Excel

Public Class frmImportDoc
    Dim trFile As Excel.Application
    ....

Or you can try removing and re-adding the reference.
Or you can simply ignore the Imports altogether and use the full name in the code.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Any ideas at all?

Oxiegen 88 Basically an Occasional Poster Featured Poster

Hi!

Ok. So I've got this problem.
I have a reference to a WebService that provides a whole bunch of classes representing a table in a database.
Now, it's a simple thing to retrieve a list of all those classes and store them for future use.

What I would like to do is to iterate through that list, instantiating each class in turn and perform some work with them.
I've been looking at the Reflection.Activator class, but that only seem to work when you have an assembly file at hand that can be loaded at runtime. This is not the case here.

Is what I'm looking for even possible? And if so, how would I accomplish this?

I'm using Visual Studio 2010 and the project is in .NET 4.0.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Nice! ......and thank you. :)

Oxiegen 88 Basically an Occasional Poster Featured Poster

It might also be a good idea to specify the port in the connectionstring, even if it's the default one.
I found a bug report regarding that error message on MySql.com that suggested this could be the problem.

Oxiegen 88 Basically an Occasional Poster Featured Poster

Hey!

I know Dani has a lot of important stuff to do, but I am a bit curious.

I thought it was kind of nifty that you could type :) or :-) and get that yellow little smiley staring back at you.
Is that a thing of the past, or will that little feature return sometime in the future?

Oxiegen 88 Basically an Occasional Poster Featured Poster

On the client.

But you may also need to configure the mysql server to allow incoming connections to other than localhost.
In the permission table. (If I'm not mistaken).

Oxiegen 88 Basically an Occasional Poster Featured Poster

a) What are the errors?
and
b) Have you ever heard of or tried GemBox Spreadsheet?
With it you can read the Excel file and import the data into a DataTable. From there you can transfer it to any database, including Access. Import/Export DataTable

Oxiegen 88 Basically an Occasional Poster Featured Poster

Try exporting the data (structure and information as create and inserts) to a common format SQL file.
You can then import that into the MySQL server as a query.

Oxiegen 88 Basically an Occasional Poster Featured Poster

This is the VB.NET forum.
This question should be posted in the Web Design forum instead.

Oxiegen 88 Basically an Occasional Poster Featured Poster

This is how you can create Zip files from within .NET: http://www.codeproject.com/Articles/28107/Zip-Files-Easy
Or you can use this: http://dotnetzip.codeplex.com/

And as for the download progress.
Now, I don't have much experience in working with TCP messages. But I'm thinking that you can start the transfer by sending to size of the file/s to be downloaded and set the progressbar Max value to that.
And during the transfer you can monitor how much data has been transferred and thus update the progressbar with that information.

Oxiegen 88 Basically an Occasional Poster Featured Poster

I found this solution for detecting a USB drive.
In particular, read post #13 for the working code.

http://www.vbforums.com/showthread.php?t=534956

Oxiegen 88 Basically an Occasional Poster Featured Poster

Try this:

SELECT * FROM table WHERE DateDiff(year, Now(), '" & <po date datetimepicker>.Value & " 00:00:00.0000000') = 3".
Oxiegen 88 Basically an Occasional Poster Featured Poster

Good.
Now, reformat the backup variable so that it looks like this:

Dim backupdb As String = driveletter & "{0:yyyyMMdd}" + ".accdb"

Notice that I removed ":\".

Oxiegen 88 Basically an Occasional Poster Featured Poster

What does backupdb look like?
And also, have you tried using backupdb without using String.Format(backupdb, Date.Today)?

Oxiegen 88 Basically an Occasional Poster Featured Poster

You can use both.
Just add a String variable to your code that will contain the selected drive from the returning ArrayList from my code.
Then use that variable and concatinate it with ":{0:yyyyMMdd}" + ".accdb"

    'This will get the very last available driveletter
    Dim driveletter As String = GetDrives().Item(GetDrives.Count -1)

    Dim backupdb As String = driveletter & ":{0:yyyyMMdd}" + ".accdb"
Oxiegen 88 Basically an Occasional Poster Featured Poster

Oh. Then no, I don't think it possible.
If the XBox is turned off, then the network connection is down.
But I am a bit surprised that you have to recreate the network connection. Once it's created is should just sit there.
However, I just remembered that there is a feature called Keep-Alive. Read this.