Search:
Type: Posts; User: trevorjeaton
Search:
Search took 0.08 seconds.
-
you sir, are a gentleman and a saint - flawless.....and your solution compared to mine makes me the retarded one i'm new to xml and this has been eye opening - thanks a ton for the links, i'll be...
-
PS - POST #8 is the EXACT output I'm looking for btw.....
-
After just waiting it finally debugged with "An unhandled exception of type 'System.OutOfMemoryException' occurred in System.Xml.Linq.dll"
There's 8 gig in this dev machine.
-
cut and pasted the source files above in to notepad, called them the same thing, dropped a button on to a form and pasted the code in the button - even duplicated the folder structure of 'temp' and...
-
hmmmm still no joy....going to drop it on its own form away from existing code.....
-
yeah weird....checking them now.....
-
i just gave it a shot - elegant, simple and way more efficient than my attempt - it's jamming up here though:
xdoc.Root.Add(xdoc...<SiteInfo>)
and seems to just hang....
-
this is working up to a single node then crashing with a null object reference - in the previous snippet i was re-dimming the xml doc each time so it was creating an empty one with each for/next:
...
-
Okay so now I'm at this, but it's generating an empty xml file......I need to check the node comparisons - here's the code so far:
Dim xmlFiles As String() =...
-
no luck yet - going to look in to the document.importnode approach.....
-
Getting warmer:
Dim xmlFiles As String() = Directory.GetFiles(Directory.GetCurrentDirectory, "STATUS*.xml")
Dim xdoc As New XmlDocument()
xdoc.LoadXml("<?xml...
-
To further clarify, output is presently this in merged.xml:
<Sites>
<SiteInfo>
<SiteID>0001</SiteID>
<SiteName>TestSite1</SiteName>
<TimeZone>Eastern Standard Time</TimeZone>
-
I have the following code that grabs all xml files in a folder that begin with "STATUS" - status001, 002, 003.xml etc. The files contain machine information from multiple sites that are uploaded to...
-
Thanks! that saves a ton of code.
-
okay thanks, i thought so....
-
Is there a cleaner way to do this guys?
dim Drive1Letter as String = "C:\"
dim selecteddrive1 as New DriveInfo(Drive1Letter)
If selecteddrive1.IsReady Then
If...
-
Hi guys, this question is a direct association with the original problem in this thread:
...
-
uggghhh *forehead smack* (again) - makes perfect sense - I've been away from VS for a while, still getting back in to it (now with 2012 Ult.).
thanks.
-
Hi guys,
I have a winforms project that I've built along with lots of help from contributors in these forums, it works great. What I'm trying to do next is to add a windows service to that...
-
of course *forehead smack* makes pefect sense - I've been away from any code for a little over a year nd a half now and i'm knockin the rust back out of my brain...
I'll be back to lurking here...
-
absolutely.
nailed.
it.
you sir, are awesome.....
-
so tried changing this:
If Not lines(index).StartsWith("Drive") Then
Me.Controls(lines(index).Split(":"c)(0)).Text = lines(index).Split(":"c)(1)
-
yep, i'll get on this one :-)
Gracias!!!
-
yep, i'll get on this one :-)
Gracias!!!
-
so actually disregard my last post - it looks like you were posting your fix while i was still reading and testing - i also have some textbox fields with colons in them too, like a website name...
-
absolutely wicked....I had 4 columns in the datagridview, so i modified your code to this:
Dim configfile As String
If My.Application.IsNetworkDeployed Then
...
-
Hi guys, I'm trying to read a textfile line by line and insert the line in to it's corresponding variable, the text file is as follows
tbSiteID:0001
tbSiteName:TestSite
tbComputerName:MYCOMPUTER...
-
figured it out - the smtp process in sendmail() used to add the attachment had it locked - the solution was smtp.dispose()
-
figured it out - i stored the current date and time in a variable and did a 'for next' through the datatable and that did the trick.
-
Hi everyone - is this possible to do in memory (so i can get rid of any disk IO)?:
If File.Exists("c:\MyImage.png") Then
File.Delete("c:\MyImage.png")
End If
...
-
here's the code so far:
Private Sub threadfunc()
While Not m_ThreadAction.StopThread
If Not m_ThreadAction.pause Then
Try
'...
-
Hi everyone,
I'm writing a report scheduler that is somewhat of a clone to the backupexec scheduler and the layout can be seen in post #10 here: http://www.vbforums.com/showthread.php?t=645406
...
-
by the way, where i'm going with this is i have a schedule clone similar to a backupexec scheduler that is using a service to create and email a report and the schedule is set via checkboxes laid out...
-
I modified jmcilhinney's code as follows, it tags a 5th as "last" and still calls 4th a 4th but in some months the 4th is last....
Private Function AddOrdinalSuffix(ByVal number As Integer)...
-
how about this aspect too:
In a month with 5 of any given weekdays, or a month with any 4 given weekdays, determine the "Last " occurence of that day in place of '4th' - ie in April there will be...
-
absolutely perfect solution, worked like a charm.
-
will give it a shot right now - i'm also testing it with a simple textbox so i can process a 5th/last occurenced of a month as well - ie 04/29/2011 is the 5th friday of april.....
-
As usual, an elegant, simple, rapid solution. We're lucky to have you in these forums.
You are a gentleman and a saint sir.
-
does anybody have a snippet or function that can grab the value of Now.ToString to produce:
msgbox("Today is the " + nth + dayofweek + "of the Month")
with nth being a string of 1st, 2nd, 3rd,...
-
okay its looking more like a binding issue in the xaml - this xaml works but only when the entire company name is typed in exactly, not 'as you type':
here's the textbox xaml:
<TextBox...
|
Click Here to Expand Forum to Full Width
|