Search found 12 matches

by imtcb
Wed Sep 23, 2015 3:43 pm
Forum: Announcement
Topic: Arctic reports (reporting system - Windows)
Replies: 201
Views: 125172

Re: Arctic reports (reporting system - Windows)

@Nico,

Did srod get you information? I just sent him a PM in the hopes that he has alerts enabled and actually gets it.

Alternatively, does anyone else have a copy of the demo they could make available for me to download so I know for sure if this will meet my needs?

Thank you,
tcb
by imtcb
Tue Apr 28, 2009 5:13 am
Forum: Coding Questions
Topic: Database problem with Left() taking too much [Resolved] Thx!
Replies: 5
Views: 1274

Thank you both for making me look more closely at the information I was parsing. Yes, in fact, some of the entries had no date in those columns, thus causing the left() to take off of the information from previous columns.
I moved the conditional above the selection and made the selection the ...
by imtcb
Tue Apr 28, 2009 2:37 am
Forum: Coding Questions
Topic: Database problem with Left() taking too much [Resolved] Thx!
Replies: 5
Views: 1274

It has to be Row$=Left(Row$, 13) The 'length' parameter wants to know the length of the snippet you want to get, not the length of the remaining snippet that you want to throw away.

By the way, if you want a 100%-safe and more flexible solution, you might have a look at Regular Expressions. Using ...
by imtcb
Tue Apr 28, 2009 2:14 am
Forum: Coding Questions
Topic: Database problem with Left() taking too much [Resolved] Thx!
Replies: 5
Views: 1274

Database problem with Left() taking too much [Resolved] Thx!

Could someone please tell me why the commented line in the following code would cause the last few database entries to get cleared? The thing I am trying to do is that if a column has date in the name I want to remove the last 13 characters before I add it to the list. The dates look like: "2009-04 ...
by imtcb
Wed Jan 24, 2007 4:08 pm
Forum: Coding Questions
Topic: Copy only modified files
Replies: 10
Views: 2716

Thanks again blueb!

It still needs a lot of work, but here is where I am now: Procedure ExamineDirectoryRecursive(Path.s, Pattern.s, List.s())
Protected Dir = ExamineDirectory(#PB_Any, Path, Pattern)
If Right(Path, 1) <> "\"
Path + "\"
EndIf
If Dir
While NextDirectoryEntry(Dir)
If ...
by imtcb
Wed Jan 24, 2007 3:59 pm
Forum: Coding Questions
Topic: Force variable evaluation
Replies: 7
Views: 1973

Thank you both!

@Kaeru Gaman - This is my first attempt at programming. I have used scripting languages in the past, and one of them allowed forced evaluation like I was trying to do. Looking through the help file I think I will be able to make a structure work for me.

@blueb - Yes! This in fact ...
by imtcb
Wed Jan 24, 2007 8:25 am
Forum: Coding Questions
Topic: Copy only modified files
Replies: 10
Views: 2716

Thank you everyone who helped me (especially Trond). I finally went through the work to do it the right way instead of trying to rely on xcopy. I have it working remarkable well.

It creates missing directories
It copies any file not matching date modified
Optionally deletes files in the destination ...
by imtcb
Wed Jan 24, 2007 5:13 am
Forum: Coding Questions
Topic: Force variable evaluation
Replies: 7
Views: 1973

Thanks. Not the answer I was hoping for, but thank you none the less!
by imtcb
Wed Jan 24, 2007 1:51 am
Forum: Coding Questions
Topic: Force variable evaluation
Replies: 7
Views: 1973

Force variable evaluation

I have looked through the help file and the forum and I just can't figure it out. How can I force evaluation of a variable so I can use the variable value in a listname declaration? temp$ = SomeProcedureCallReturnValue()
NewList temp$() This creates the list with the name temp$, not the value that ...
by imtcb
Mon Jan 22, 2007 8:05 pm
Forum: Coding Questions
Topic: Copy only modified files
Replies: 10
Views: 2716

I looked at that and here is what I came up with:

Procedure RunXcopy(Source.s, Destination.s)
Global Source$, ExitCode
Source$ = Source
Xcopy = RunProgram("xcopy", Source+" /D /E /S /C /Y", Destination, #PB_Program_Open|#PB_Program_Read|#PB_Program_Error)
If Xcopy
While ProgramRunning(Xcopy ...
by imtcb
Mon Jan 22, 2007 8:33 am
Forum: Coding Questions
Topic: Copy only modified files
Replies: 10
Views: 2716

Thank you for the reply!

I guess I should use RunProgram, but I can't figure out how to capture the error levels in the event xcopy fails. I tried the OnError library, but that seems to be geared for PB errors only. Is there a way to capture the error level from xcopy?

Here is what I have so far ...
by imtcb
Sun Jan 21, 2007 6:42 am
Forum: Coding Questions
Topic: Copy only modified files
Replies: 10
Views: 2716

Copy only modified files

Hi,

I have a batch file that I use to xcopy several directories using the /D flag, so that only modified files are copied when compared to the destination. It works OK, but I would like to be able to do more error handling and reporting so I found PureBasic. I have the demo, and have spent all day ...