Search:

Type: Posts; User: trevorjeaton

Page 1 of 9 1 2 3 4

Search: Search took 0.08 seconds.

  1. Re: Merge XML docs in a folder into one

    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...
  2. Re: Merge XML docs in a folder into one

    PS - POST #8 is the EXACT output I'm looking for btw.....
  3. Re: Merge XML docs in a folder into one

    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.
  4. Re: Merge XML docs in a folder into one

    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...
  5. Re: Merge XML docs in a folder into one

    hmmmm still no joy....going to drop it on its own form away from existing code.....
  6. Re: Merge XML docs in a folder into one

    yeah weird....checking them now.....
  7. Re: Merge XML docs in a folder into one

    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....
  8. Re: Merge XML docs in a folder into one

    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:

    ...
  9. Re: Merge XML docs in a folder into one

    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() =...
  10. Re: Merge XML docs in a folder into one

    no luck yet - going to look in to the document.importnode approach.....
  11. Re: Merge XML docs in a folder into one

    Getting warmer:



    Dim xmlFiles As String() = Directory.GetFiles(Directory.GetCurrentDirectory, "STATUS*.xml")
    Dim xdoc As New XmlDocument()
    xdoc.LoadXml("<?xml...
  12. Re: Merge XML docs in a folder into one

    To further clarify, output is presently this in merged.xml:




    <Sites>
    <SiteInfo>
    <SiteID>0001</SiteID>
    <SiteName>TestSite1</SiteName>
    <TimeZone>Eastern Standard Time</TimeZone>
  13. [RESOLVED] Merge XML docs in a folder into one

    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...
  14. Replies
    2
    Views
    1,122

    VS 2010 Re: drive.available free space

    Thanks! that saves a ton of code.
  15. VS 2010 Re: dynamic variables derived from a text file

    okay thanks, i thought so....
  16. Replies
    2
    Views
    1,122

    VS 2010 [RESOLVED] drive.available free space

    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...
  17. VS 2010 [RESOLVED] dynamic variables derived from a text file

    Hi guys, this question is a direct association with the original problem in this thread:
    ...
  18. VS 2010 Re: Include a Windows Service in a Winforms Project and compile both

    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.
  19. VS 2010 [RESOLVED] Include a Windows Service in a Winforms Project and compile both

    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...
  20. VS 2010 Re: read each line in a txt file to a variable

    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...
  21. VS 2010 Re: read each line in a txt file to a variable

    absolutely.

    nailed.

    it.



    you sir, are awesome.....
  22. VS 2010 Re: read each line in a txt file to a variable

    so tried changing this:





    If Not lines(index).StartsWith("Drive") Then
    Me.Controls(lines(index).Split(":"c)(0)).Text = lines(index).Split(":"c)(1)
  23. VS 2010 Re: read each line in a txt file to a variable

    yep, i'll get on this one :-)

    Gracias!!!
  24. VS 2010 Re: read each line in a txt file to a variable

    yep, i'll get on this one :-)

    Gracias!!!
  25. VS 2010 Re: read each line in a txt file to a variable

    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...
  26. VS 2010 Re: read each line in a txt file to a variable

    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
    ...
  27. VS 2010 [RESOLVED] read each line in a txt file to a variable

    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...
  28. VS 2010 Re: chart control in memory stream

    figured it out - the smtp process in sendmail() used to add the attachment had it locked - the solution was smtp.dispose()
  29. VS 2010 Re: Comparing current time to stored time

    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.
  30. VS 2010 [RESOLVED] chart control in memory stream

    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
    ...
  31. VS 2010 Re: Comparing current time to stored time

    here's the code so far:




    Private Sub threadfunc()
    While Not m_ThreadAction.StopThread
    If Not m_ThreadAction.pause Then
    Try
    '...
  32. VS 2010 [RESOLVED] Comparing current time to stored time

    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
    ...
  33. Replies
    11
    Views
    1,485

    VS 2010 Re: [RESOLVED] Day recurrance of the month

    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...
  34. Replies
    11
    Views
    1,485

    VS 2010 Re: [RESOLVED] Day recurrance of the month

    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)...
  35. Replies
    11
    Views
    1,485

    VS 2010 Re: [RESOLVED] Day recurrance of the month

    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...
  36. Replies
    11
    Views
    1,485

    VS 2010 Re: [RESOLVED] Day recurrance of the month

    absolutely perfect solution, worked like a charm.
  37. Replies
    11
    Views
    1,485

    VS 2010 Re: [RESOLVED] Day recurrance of the month

    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.....
  38. Replies
    11
    Views
    1,485

    VS 2010 Re: Day recurrance of the month

    As usual, an elegant, simple, rapid solution. We're lucky to have you in these forums.

    You are a gentleman and a saint sir.
  39. Replies
    11
    Views
    1,485

    VS 2010 [RESOLVED] Day recurrance of the month

    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,...
  40. Re: WPF Equivalent to winforms .findstring and .topindex methods

    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...
Results 1 to 40 of 345
Page 1 of 9 1 2 3 4



Click Here to Expand Forum to Full Width