Type: Posts; User: DataMiser
Search took 0.16 seconds.
I didn't look to closely but it appears you just need a counter to do what you want
Dim Result As String
Dim Count as integer
For Each LocationY In DataByLocation
One simple method to copy and entire directory in VB.Net would be
My.Computer.FileSystem.CopyDirectory("C:\TestDirectory1", "C:\TestDirectory2", True)
There are several other options...
Well for starters that is not VB.Net code you are trying to convert.
May be C# code
The PD wizard works fine in most cases though you would need to modify it to get a product key if you want that as part of your install.
The best installer I have used is Install Shield but that...
Add a modal flag to the show statement so the code waits at the show line until the viewer form is closed or hidden.
I generally use a Transactions table and record transactions there. The Type of Trans, The PartNumber which is linked to the master part table, qty, the date of the transaction and the user who...
My advice would be to add some data, run the program and see if it works the way you want. If not then step through the code and see what it is doing and then if you can't figure it out come back and...
Have you tried running your revised code to see if it does what you want it to do?
I have no way of knowing what you expect it to do. I can only tell what it should do based on the way it is coded.
Well I am not sure what you are trying to do but it that little piece of code I posted above was edited to remove all those red Next Y statements and move the Next Z down after the end if then it...
If rsbal.EOF Then 'no record here
Next Y 'should not be here next line of code will be the Next Y in Blue at the bottom
Well basically your initial issue is that you can't have a conditional Next. Each For requires a Next and if either of those are within a conditional such as an If then both the for and the next must...
Sorry I just can't seem to get past this statement
What in the world do you actually mean by that? It always helps to speak in complete sentences ;)
Well I think instead of searching for that first character I would just check the length of the string received and drop it if it is incomplete.
That said having the receive threshold at 43 is...
Well it would have helped if the code was pasted into a post so as to be readable rather than as a scaled image which is blurry and partially covered by a message box.
From the looks of it the...
Where are you getting the error and what is the actual error message?
Without going to far into the code you posted why not use a different method for locating the picture box
Simply use the Top of the picturebox above it + the height of the picturebox above it +...
No I did not try it at 1366 and no it was not ok at 1920
Probably you coded it based on a width of 1280 and it is the width that is giving you problems.
Note that both displays you said were ok are...
you don't even need to run it at multiple res to see the problems just run it on a high res and then resize the form. Definitely some issues in your resizing there.
I am running 1920x1080
Agreed I would add the where clause as well. Just meant as a quick example of how to get the names of the column names and other properties if needed.
I would check how you are launching the program.
I ran a quick test here and this is the result
1: I open explorer and point it to the mapped drive, open the folder and lanuch the program ...
He had said before that he was trying to create it on the desktop but failed to say if it was the desktop within the VM or the desktop of the Host OS.
It really is hard to come up with a solution...
Sorry, can't understand the question
app.path returns where you program is at so those 3 values you show only cause confusion and make it harder to understand what you are trying to do.
When I have need to create a new database from my program that mimics the old database I generally include a blank copy of the mdb with a different file extension then simply make a copy of the blank...
You can also retrieve the names from a standard recordset opened on the target table
RS.Open "Select * from Table"
For x=0 to rs.fields.count-1
Anyway...outa here. Didn't want to get into a .....contest...was just a suggestion.[/QUOTE]
From the bolded part in the quote above it certainly appears that the intention was to have that...
Would be a variable name so the client would not know what filename to ask for.
I am assuming that the intention is to automate this rather than have the user go to a web page and look for it
Well it would help if you showed the code that is doing the calculating for the number of lines and the code that sizes this pictureboxdata also what routine(s) the code is in
What do you mean by...
MKDir() to create a directory
FileCopy() to copy a file
Kill() to delete a file
RMDir() to remove a directory (directory must be empty)
Paste does not enter into it. FileCopy creates a copy of...
Keep in mind that the timestamp will show you when the zip file was uploaded rather than when the exe was created.
Version number is probably a better choice.
I have used the datagrid in a similar way many times myself. It is very quick and easy and is often all you need.
Why would you want more than one reference variable to the same array? That really doesn't make any sense.
Say you have Array X() and it contains 1,2,3,4,5
You somehow make Z reference X so now...
Why would you need to use 5 functions for that? Sounds like a single query should be all that is needed and yes 15-20 seconds is far to long for this simple task should definitely be <1 second
Look at the query you used, It does not pull the EnterName field as part of the recordset so when the report tries to add it it is not there and gives you an error.
\That query is just returning the...
That was a poor piece of code to begin with. If it had been coded correctly then it would have upgraded correctly.
It should have been
Function GetSysEEsn() as Boolean
Not really a good idea to use Val as a variable name seeing as how there is a Val() function in VB
I didn't bother to try and follow that long SQL query.
The thing I am wondering is how you come up with a balance of 100,000 when you had a 0 balance and a 100,000 debit?
I really wish my bank...
Same here, I think the last time I used it for a variable was in VBDos
I do use it on various string functions of course
Funny how if you alter the code just a little then it works fine but as is it crashes
You are passing a return value from a function byref to an API call which appears to be the issue
If you place...
The first part is true but the second is incorrect or so it would seem. You do not need to keep adding the $ on the end after the initial dim
So you consider creating hooks and reading and writing to the memory of other processes normal VB code?
That seems a bit odd seeing as how you have to use API calls to do it...
Click Here to Expand Forum to Full Width
Survey posted by VBForums.