I have the following module that I delete old files based on how old they are:
Sub Main()
Dim First_Date As String = Date.Today.AddDays(-7)
Dim Archive_Files() As String = System.IO.Directory.GetFiles("C:\Turnover")
Dim Filtered As New ArrayList
For x As Integer...
I want to be able to delete and search for elements in a XML file, I'm using the code below for adding elements which works great:
Public Sub cmdAddElement_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAddElement.Click
Dim doc As New XmlDocument...
Thanks a lot lbass, the formula works great, I was trying to create sub totals for each of the four groups(First, Second, Third and Weekend) to be placed at the end of the report. The current formula does total the amount for each group per day - I'd like to have the total for each group for...
I'm using the following formula that I was given to an earlier question I had:
if time({table.opendatetime}) in time(0,0,0) to time(7,59,59) then "Third Shift" else
if time({table.opendatetime}) in time(8,0,0) to time(15,59,59) then "First Shift" else
if time({table.opendatetime}) in...
Being sort of new to using Crystal Reports in VB .Net...I need help on how to setup and use formulas in CR with VB .Net. I have a sample of a CR I setup in VB .Net. The field name is 'Open' in my test.rpt. It's basically a date and time in the 24 hour(military format). The formula I need is to...
Let's say I have the following folder:
C:\Archive\Data\Logs\
and within this folder are many files in this format:
Cycle Run of Tuesday, February 01, 2005.html
Cycle Run of Wednesday, February 02, 2005.html
.
.
.
Cycle Run of Monday, February 28, 2005.html
The folder gets larger every day...
How would I check to see if the current time(military format) is
greater then 07:30AM and the day of the week is Monday-Friday.
Pseudo code:
If Current_Time > 07:30AM and Current_Day = Monday or Current_Day =
Tuesday _
or Current_Day = Wednesday or Current_Day = Thursday or Current_Day =...
Here is my XML file:
<?xml version="1.0" standalone="yes"?>
<MSR>
<Info>
<TODAY>Saturday, January 29, 2005</TODAY>
<SSEC>4:00 pm</SSEC>
</Info>
</MSR>
My XSL file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
What I'd like to do is to check the values in an element if they're greater than a certain time and if they are, then change the font color of the time. I have about 10 elements that I will check against a different time for each element, I'm just showing one element below in my XML file. The...
Basically, I'd like to know how to delete all my emails in an Outlook folder called: "Previous Month's" and then move, not copy all the emails from "Current Month's" to the "Previous Month's" folder.
When using the axWebBrowser to look at a folder/directory is it possible to set the view to 'Details' programmatically rather
than having to keep using the context menu?
Currently, the user has to right-click his mouse and select details to select a view.
Any ideas?
Public Sub CheckForExistingInstance()
'Get number of processes of you program
If Process.GetProcessesByName _
(Process.GetCurrentProcess.ProcessName).Length > 1 Then
MessageBox.Show _
("Another Instance of this process is already running", _...
Currently. there is a Word doc. that the staff update throughout the day. I want to open this Word doc. and paste it's contents into a text file. This text file would be like a log or archival file which would grow everyday.
Basically, I would like to know how to add or remove an elemet from the XML file below using VB .Net:
<?xml version="1.0" standalone="yes"?>
<RECORD>
<TYPE>
<TIME_STARTED>4:44</TIME_STARTED>
<TIME_ENDED>6:33</TIME_ENDED>
</TYPE>
</RECORD>
When the 'TODAY' element is added the XML...
I have the following tab delimited master.txt file which has about 1000 records and looks like this:
NTADPH0853M00 Premier WST None "Lee, Tom" 4607 "Lee, Tom"
NTADPH0892M00 Standard; Prime Shift Monitoring WST None "JOHNSON, DON"
ntadph0919m00 Standard; Prime Shift Monitoring wst None "Lee...
I have an input file listed below which contains IP addresses with
other information tacked on after each address. Some of the IP address
are set up in ranges with a '-' and some of them have the wildcard
('*') within them. I need to do is read the file and create a new file
that has...
I currently have a VB 5.0 application that uses Outlook 97 on a PC running Windows XP. I'm trying to pull off the CurrentUser from the Outlook object and display it in a txtbox in my VB application. I was told that MAPI is unavailable with Windows XP and that you have to use CDO. Is this true...
I have two files with each of them containing two columns(fields) of
data separated by a space. I need to read in both files into an array
I guess and compare the first column(field) of the first file with the
first column(field) of the second file. I have an example of the two
files below...
I created two arrays or files that I want to compare. I want the output to show what's different from fileA vs. fileB and what's different from fileB vs. fileA. I would like this be done without using temp files. Here is what I have coded thus far:
#!/usr/bin/ksh
typeset -i x=0
typeset -i y=0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.