Comatose 290 Taboo Programmer Team Colleague

First problem (in form_load):

me.show
main.Setfocus

Second:
Dunno which box we are talking about... the big multi-line one?

Third (on text1's keypress event, or whatever box you do the typing in):

if keyascii = 13 then
     keyascii = 0
     main.text = text1.text & vbcrlf & main.text
end if
' /* Or Something Like This ^ */
Comatose 290 Taboo Programmer Team Colleague

Not to replace it so much, but you could just as easily do a pop and then an immediate push. So, something like:

$retval = pop(@arrayname);
push @arrayname, $newvalue;

so, $retval will contain the last item in the array, but the array will be one element less, and will not contain the last value any longer.... but $retval will. Then, you push the newvalue you want onto the array... this will essentially, remove the last element, and replace it with a new value...

Comatose 290 Taboo Programmer Team Colleague

We Can Fix That Also, By using a quick API call, and only calling doevents if there is information waiting in the message queue for our app (since I can see you're concerned with speed ;)) In your declarations section of your form, OR in a standard code module, add this (assuming code module):

Public Declare Function GetInputState Lib "user32" () As Long

Then Just Replace the Lonely DoEvents With This Code:

If GetInputState <> 0 Then DoEvents

Let me know the speed difference if you would please :)

Comatose 290 Taboo Programmer Team Colleague

*Just Shakes His Head*

Comatose 290 Taboo Programmer Team Colleague

I go idea is to use a msgbox or some other method to see the actual string. Say msgbox input, that will tell you exactly what the string is that you are trying to get the substring of. I'm guessing there isn't 2 or 3 characters in the string, so when you try to get 2, it doesn't exist. I could be wrong, but I don't have .NET installed to try it :(

Comatose 290 Taboo Programmer Team Colleague

Have you played with the internal printer object, or printer collection? What you can do, is set the printer to a different index of the printer collection (behaves more like an array). An example would be:

' /* Set The Printer To the First Printer In the OS */
Set Printer = Printers(0)

' /* Code To Print The Document */
Printer.Print "change this to something to print your document"

' /* Set The Printer To the Second Printer In the OS */
Set Printer = Printers(1)

' /* Code To Print The Document */
Printer.Print "change this to something to print your document"

' /* Set The Printer To the Third Printer In the OS */
Set Printer = Printers(2)

' /* Code To Print The Document */
Printer.Print "change this to something to print your document"

The above code should print the line: change this to something to print your document to 3 different printers on the system (0, 1, 2). So all you have to do to change the printer is set Printer to whichever index of the printers array (collection).

Comatose 290 Taboo Programmer Team Colleague

I usually sign them, but in case you were wondering, I gave you the one for the example project.

Comatose 290 Taboo Programmer Team Colleague

I think that what you want to do, can not be done the way you want to do it. I researched a bit on using access with a Perl CGI, and this seems semi-possible, if the server that is hosting your CGI is running their server in windows with active perl. My guess is no, they are not. They are most likely using *nix system. Now, there is a solution to this, but it is probably more work than it's worth! Let me give you the break down.

You could have your Perl CGI Accept the user data, and write it to a database on the server, then you could even have it viewable to yourself on a web page. So you surf there, Log in, and view your "sign ups". Now to answer your actual question, you could build a program to connect to your server (through a number of means... FTP, HTTP, whatever), and retrieve that data from the server. That program then saves that data in an Access Database. So, User Enter Data, Server Saves The Data, A program on your computer requests the data, and saves it to an access database. ;)

Comatose 290 Taboo Programmer Team Colleague

have you tried debugging it with an alert (to make sure the HTML is importing the script?) something like: alert("made it to such and such function"); and stick that in a function in the external.js file, and then in your HTML code, when you call the function (that is supposed to be in the external.js file) it should come up with an alert. This way, you know the browser is actually retrieving the javascript code.

Killer_Typo commented: pretty smart idea about checking to see if its even calling the script. +1
Comatose 290 Taboo Programmer Team Colleague

so, the usernames and passwords are stored in an access database?

Comatose 290 Taboo Programmer Team Colleague

Simply? Well, no. Is this being done with VB6 or .NET? Is This using Flat (text) files or database systems (ado, sql?). Is there a deadline right now?