Search:
Type: Posts; User: wild_bill
Search:
Search took 0.37 seconds.
-
Try disposing the InsertCMD object after executing the non-query.
-
A couple things I notice from your original regex expression, it's missing the ! and proper casing. So Try
Dim regex = New Regex("^<!ENTITY.*$")
-
Is this valid XML you're dealing with? Perhaps an example or two of your input would help us determine the best solution.
-
Compression - https://icsharpcode.github.io/SharpZipLib/
Batch Applications - https://www.nuget.org/packages/CommandLineParser/
Code Metrics - https://stylecop.codeplex.com/
Database Deployment -...
-
Dim rx As New Regex("^([A-Za-z\s]+),? ([A-Za-z]{2}) ([\d\-]+)$", RegexOptions.Compiled)
-
After you change the table schema in SSMS you would have to refresh the data table in your project to get the changes.
-
I think this is a more succinct method for you
Private Sub WriteDocumentToFile(filePath As String)
' create buffer to store data
Dim buffer As New...
-
I do understand, perfectly! You need a datagrid control and you need to implement its paging functionality. I've posted a link above.
-
This should help get you started
https://support.microsoft.com/en-us/kb/305271
-
I would probably tackle it a little differently. This assumes OwnerName uniquely defines a customer, which it may not. This is why you should follow normal database modeling practices.
...
-
I'm not sure what database you're using, but in sql server it would look like this
SELECT N, CAR, SUM(EURO)
FROM PRE
GROUP BY N, CAR
HAVING SUM(EURO) >= 1500
-
I don't think you need to convert anything. If you've got a byte array you should be able to do something like this
Private Sub SaveBytes(ByVal myItem As Byte())
Using cmd As New...
-
Since you don't have to use comma delimited files, don't. Use a grid for the user interface then use a data table to read/write xml.
Private Sub Form1_Load(sender As Object, e As EventArgs)...
-
-
I would use regex. This finds common punctuation followed by zero or more spaces and replaces that with the matched punctuation and a single space. I also added a TrimEnd.
Dim...
-
Dim list = New Dictionary(Of String, Integer)
Dim index = -1
list.Add("John", 3)
list.Add("Peter", 5)
list.Add("David", 7)
For Each key In list.Keys
...
-
Nice find tg.
Check out the TableMappings property of the data adapter. You can use it to change the default table names to names of your choosing.
-
I think you're missing the spare parts table. Add this before the line throwing the error.
If Not antallaktikaDataSet.Tables.Contains("Spare_Parts") Then
Throw New...
-
This should get you started
Sub Main()
For Each drive As System.IO.DriveInfo In System.IO.DriveInfo.GetDrives
DirSearch(drive.ToString)
Next
End Sub
-
This should help get you started
Sub Main()
Dim doubleQuote = Convert.ToChar(34)
For Each a As String In System.IO.Directory.GetFiles(My.Application.Info.DirectoryPath,...
-
Did you look at DBasnett's link and try the solution?
-
http://www.vbforums.com/showthread.php?469872-Retrieving-and-Saving-Data-in-Databases
-
You quit the excel application in Button3_Click (shame on your naming!). Then you attempt to reuse it in Button2_Click. I think if you initialize the object everytime, it may solve your problem.
...
-
Let's refactor your code a little bit. First thing add your images from your C drive to your project's resources:
138695
Now you should be able to use the following code:
Private...
-
Here's an example if you're still having problems.
Sub Main()
Console.WriteLine(RollupNumber(123))
Console.WriteLine(RollupNumber(129))
End Sub
Private Function...
-
You would need to implement a recursive function. For example,
123 = 1+2+3 = 6 (no problem)
129 = 1 + 2 + 9 = 12 (You would need to send 12 back into the function to get 3 as a result)
-
Dim files As System.IO.FileInfo() = (From file In New IO.DirectoryInfo(appFolder).GetFiles Where Not file.Extension = ".exe" Select file).ToArray
-
The games I built back in the day were keno and pong.
-
Thanks Tn, you were correct, I was making this a whole lot more complicated. Building the node structure was very fast, so adding the parent to the tree view once at the end of the process as...
-
I've got a custom tree view control. It take several seconds for all the nodes to be populated. I decided to kick this functionality off in its own thread to prevent UI locking. The UI is...
-
Do you mind giving us some more detail as to what your application does? It will help us help you.
-
https://msdn.microsoft.com/en-us/library/bb386386.aspx
-
Create a WCF service that runs using a service account. The service account would need access to your file system, but the individual user would not. Your application would then have to be built to...
-
Try a search in your project for "dtComments =". Maybe your table is getting reinitialized else where.
-
If table.PrimaryKey Is Nothing Then
Trace.TraceInformation("No key found.")
Else
Trace.TraceInformation("Key found.")
End If
-
Here's an idea
' 1 digit or 1 digit with a decimal
Dim one = "\d|\d\.\d"
' 2 digits or 2 digits with a decimal
Dim two = "\d{2}|\d{2}\.\d"
...
-
Don't use the normal command prompt, use the visual studio command prompt.
-
Do not open the javascript file in the IDE. Open the visual studio command prompt and navigate to the folder containing you file. Then type in the command listed in step 2.
-
In that case I would use a data table, and the program would start looking like this
Sub Main()
Try
If...
-
I would create a dictionary or data table to store the information. Can you be more specific what you plan to do with the data?
|
Click Here to Expand Forum to Full Width
|