Search found 18 matches
- Mon Feb 24, 2014 8:16 am
- Forum: Technical / Scripting
- Topic: Error handling for corrupted files
- Replies: 0
- Views: 5857
Error handling for corrupted files
I would like to know how to perform error handling for corrupted files? Currently if a db query is running and it encounters a file (dbf) that is corrupted and cannot be opened, it will hang at that point. I would like for it to be able to log the file that is corrupted and skip that file and resume...
- Mon Feb 10, 2014 6:26 am
- Forum: Beginners
- Topic: Error handling
- Replies: 5
- Views: 7760
What about error handling for corrupted files? Currently if a db query is running and it encounters a file that is corrupted and cannot be opened, it will hang. I would like for it to be able to log the file that is corrupted and skip that file and resume running the query. If anyone is willing to p...
- Thu Jan 09, 2014 5:42 am
- Forum: Technical / Scripting
- Topic: Disk or network error
- Replies: 3
- Views: 4547
Disk or network problems. Seeing some code might be helpful. If nothing else, what's on line 192? Its a db query. Line 191: Let>SQL=SELECT number, type, date, time FROM STAFFIO where station 'D' AND number '' AND Date IS NOT NULL AND Time dbID,SQL,ResultData,NoRowCount,NoFieldCount,1 The error usua...
- Fri Jan 03, 2014 3:12 am
- Forum: Technical / Scripting
- Topic: CSVFiletoarray reading large file
- Replies: 6
- Views: 8163
CSVFiletoarray reading large file
I am experiencing a problem where MS hangs when I read a huge CSV file containing more than 10k records. What is another alternative to using csvfiletoarray? I have to read all records from the csv and then transfer it to the database. Would DB query be a better option? Or Readln (and removing the d...
- Mon Dec 30, 2013 3:34 am
- Forum: Technical / Scripting
- Topic: Running macro scheduler even when logged off
- Replies: 1
- Views: 2740
Running macro scheduler even when logged off
Hi,
Is there a way to get MS to run even when the computer is logged off?
Is there a way to get MS to run even when the computer is logged off?
- Mon Dec 30, 2013 1:58 am
- Forum: Technical / Scripting
- Topic: Disk or network error
- Replies: 3
- Views: 4547
Disk or network error
Hi guys
I am experiencing a random error in the midst of running a macro. I get a message box prompt saying "Line 192- Disk or network error". I click OK, and the macro continues as normal. What could cause such an error?
I am experiencing a random error in the midst of running a macro. I get a message box prompt saying "Line 192- Disk or network error". I click OK, and the macro continues as normal. What could cause such an error?
- Wed Nov 06, 2013 12:58 am
- Forum: Technical / Scripting
- Topic: Access Violation error
- Replies: 3
- Views: 4255
Sometimes the easiest problems can be solved by just opening and closing (or rebooting). After restarting MS, I can't simulate the problem any longer.JRL wrote:Running your script and not getting any errors. I'm running v14.0.17 on WinXP SP3.
Have you tried closing Macro Scheduler and reopening it?
- Tue Nov 05, 2013 4:08 pm
- Forum: Technical / Scripting
- Topic: Access Violation error
- Replies: 3
- Views: 4255
Access Violation error
I am facing an access violation error at address 0020003D. Before this error, a debugging error shows, saying that the dialog already exists. I have been using the same script for other macros without any problems. Can anyone try to help me debug? Let>InsertCount=1 Let>ErrorCount=0 Let>UpdateCount=0...
- Thu Oct 17, 2013 6:28 am
- Forum: Beginners
- Topic: Links on Email
- Replies: 1
- Views: 3776
Links on Email
Hi, May I know how to include a link as part of the body of the email using SMTPSendMail?
Say in my body, I want to include a link to http://www.facebook.com, is there a way to do that?
Say in my body, I want to include a link to http://www.facebook.com, is there a way to do that?
- Tue Sep 03, 2013 3:59 pm
- Forum: General Discussion
- Topic: Unable to go to inbox
- Replies: 3
- Views: 6651
Unable to go to inbox
I have a notification saying that I have one new message but everytime I click on that link,i get redirected to the Forum home page http://www.mjtnet.com/usergroup/index.php. I have logged in already.
- Tue Sep 03, 2013 3:07 pm
- Forum: Beginners
- Topic: Error handling
- Replies: 5
- Views: 7760
Error handling
Hi, So far you guys have been really awesome in helping me out with my MS problems. My program currently calls an Excel file to read from it. Before I call it, I will have a task kill function to kill any running excel tasks. I will call it again at the end to make sure any excel tasks are closed. H...
- Sun Sep 01, 2013 5:41 pm
- Forum: Beginners
- Topic: String help
- Replies: 3
- Views: 5670
- Sun Sep 01, 2013 5:23 pm
- Forum: Beginners
- Topic: String help
- Replies: 3
- Views: 5670
String help
I need to read from a set of strings, eg EBB21-Jason or EBB203-Jason but I want to be able to capture only the code in front (EBB21 and EBB203 respectively). Which means I would have to capture any characters before "-". What is the simplest way to do that? Do I use regex? I am not familiar with reg...
- Sun Sep 01, 2013 2:11 pm
- Forum: Beginners
- Topic: Automatic timeout for dialog
- Replies: 2
- Views: 6398
- Sun Sep 01, 2013 3:20 am
- Forum: Beginners
- Topic: Automatic timeout for dialog
- Replies: 2
- Views: 6398
Automatic timeout for dialog
I have created this Dialog box. Can anyone teach me how to automatically timeout and close it after say 5s? I can do it if its a Message, but not sure how to for Dialog or MessageModal. Dialog>Dialog1 object Dialog1: TForm Left = 247 Top = 97 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption =...