On error...

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

User avatar
esgici
Posts: 4439
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 324 times
Been thanked: 99 times
Contact:

Re: On error...

Post by esgici » Fri Jul 20, 2012 7:52 pm

rathinagiri wrote:That's great!
Which one :?:

Only a joke :lol:

By the way,
Esgici wrote:Please don't forget keeping your handler clean (error free); otherwise (as I noticed in top comment of .prg), result may be a real nightmare !
Made some changes for preventing this "nightmare"; please test deeply and don't hesitate to criticize :arrow:

Regards

--

Esgici
SErrHand.zip
Simple error handle sample - 2; .prg file
(1.7 KiB) Downloaded 122 times
Viva INTERNATIONAL HMG :D

Dilip Patel
Posts: 31
Joined: Tue Aug 17, 2010 6:01 am

Post by Dilip Patel » Fri Jul 27, 2012 8:27 am

Hi Rati,
Attached is a block of code which i used with clipper.
The code will have to be modified for HMG.
Hope it will be of use to you.

The code has been partially modified and can be used - see further down the blogg.
The attached file is deleted.
Last edited by Dilip Patel on Fri Jul 27, 2012 7:28 pm, edited 2 times in total.

User avatar
esgici
Posts: 4439
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 324 times
Been thanked: 99 times
Contact:

Post by esgici » Fri Jul 27, 2012 8:35 am

Dilip Patel wrote:Hi Rati,
Attached is a block of code which i used with clipper.
The code will have to be modified for HMG.
Hope it will be of use to you.
Hi Dilip

Thanks to participation :)

Perhaps you forgot to attach your code :(

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
esgici
Posts: 4439
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 324 times
Been thanked: 99 times
Contact:

Post by esgici » Fri Jul 27, 2012 11:20 am

Hi Dilip

This .prg require two header files :(

SPECIAL.CH
LOWLEVEL.CH

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
esgici
Posts: 4439
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 324 times
Been thanked: 99 times
Contact:

Post by esgici » Fri Jul 27, 2012 1:07 pm

esgici wrote: This .prg require two header files :(
...
... and probably this isn't a Clipper .prg; may be Fox ?

... and require also a "main/host" prg ( KSMENU ?) that call / use this one :(

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

Dilip Patel
Posts: 31
Joined: Tue Aug 17, 2010 6:01 am

Post by Dilip Patel » Fri Jul 27, 2012 3:17 pm

Hi Esgici,
Please find attached the CH files.
This errorsys program is a clipper routine. It was taken from a book written for clipper by Steven Straley. The KSMMENU reference was for the main menu of a clipper program. it was not necessary to reference the errorsys routine in a program. The errorsys program was compiled using clipper and the object file errorsys.obj was linked with any main clipper program.
Attachments
chfiles.rar
(854 Bytes) Downloaded 182 times

User avatar
esgici
Posts: 4439
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 324 times
Been thanked: 99 times
Contact:

Post by esgici » Fri Jul 27, 2012 4:37 pm

OK Dilip

I'm continuing to work.

BTW, what about copyright issue of this .prg ?

Regards.

--

Esgici
Viva INTERNATIONAL HMG :D

Dilip Patel
Posts: 31
Joined: Tue Aug 17, 2010 6:01 am

Post by Dilip Patel » Fri Jul 27, 2012 5:33 pm

Hi Esgici,
This program taken from a book which was purchased legally. All samples in that book were available to the purchaser. I have somewhat got it to work partially. At the moment having a problem with the last function which saves the memory variables to a memory.mem file and therafter it processes the memory file. The program seems to have a recursion problem which i cannot solve.
Regards,
Dilip

User avatar
esgici
Posts: 4439
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 324 times
Been thanked: 99 times
Contact:

Post by esgici » Fri Jul 27, 2012 6:15 pm

OK Dilip

I'm continuing to work.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

Dilip Patel
Posts: 31
Joined: Tue Aug 17, 2010 6:01 am

Post by Dilip Patel » Fri Jul 27, 2012 6:44 pm

Attached find test results of the modified error routine for HMG. I have been communicating with Esgici regarding the program. I have got it to work partially. For the memory variables to be also listed in the error file, some one with more knowledge than myself with have to solve it. I am having a problem with 'recursion' in that routine. That part of the program has been commented out. Also the screen saving part will also have to be modified.
Regards,
Dilip
Attachments
tst.rar
(800.64 KiB) Downloaded 195 times

Post Reply