Search found 55 matches

by cfbsoftware
Fri Mar 13, 2015 12:59 pm
Forum: GUI problems
Topic: How to detect the close of form window
Replies: 3
Views: 11878

Re: How to detect the close of form window

There was a discussion titled How to disable the window close button started on the Oberon microsystems mailing list on 19th Jun 2014. Although the aim was different to yours I think there should be enough information there to enable you to do what you are trying to do. Unfortunately the archives at...
by cfbsoftware
Thu Feb 26, 2015 7:28 am
Forum: Common questions
Topic: Windows 7 "access is denied"
Replies: 4
Views: 6083

Re: Windows 7 "access is denied"

To avoid this problem follow these instructions from Chapter 4 Server installation (Windows only) of the BlackBox Component Builder User Manual (System/Douc/User-Man). In your case the workstation and the server are the same machine: 1) Install BlackBox in a directory on the server machine, using Se...
by cfbsoftware
Mon Jan 19, 2015 12:32 pm
Forum: Component Pascal
Topic: ENTIER(Math.Power(5, 3)) = 124
Replies: 2
Views: 11589

Re: ENTIER(Math.Power(5, 3)) = 124

1. Read the discussion Numerical Analysis (including the references regarding rounding) contained in some of those posts.

2. For this particular example use Math.IntPower to get the answer you want.
by cfbsoftware
Sat Nov 29, 2014 11:43 am
Forum: Component Pascal
Topic: Quick Quiz #1 - DIV and MOD
Replies: 11
Views: 23645

Re: Quick Quiz #1 - DIV and MOD

I don't understand the significance of the "largeint support" comment here. Does it mean this code works with INTEGERs and LONGINTs, or with the latter only? Only LONGINTs. After more investigation I found CPL486.GenDiv which handles both DIV and MOD for all the smaller integer types. WAR...
by cfbsoftware
Sat Nov 29, 2014 11:06 am
Forum: Component Pascal
Topic: Quick Quiz #2 - Semicolons - Solutions
Replies: 3
Views: 12016

Quick Quiz #2 - Semicolons - Solutions

Please post your solutions and explanations to Quick Quiz #2 as a reply to this message.
by cfbsoftware
Sat Nov 29, 2014 11:03 am
Forum: Component Pascal
Topic: Quick Quiz #2 - Semicolons
Replies: 0
Views: 26459

Quick Quiz #2 - Semicolons

How many semicolons need to be removed from the following code snippet before it will compile? Please post your solution here to give others a chance to think about it first before looking at your answer.

Code: Select all

  IF i = 0 THEN;
     j := 0;
  ELSE;
     j := 1;
  END;
by cfbsoftware
Fri Nov 28, 2014 12:05 pm
Forum: Forum administration
Topic: "center members only" forum
Replies: 8
Views: 22172

Re: "center members only" forum

It's one thing to have communications that are restricted to a small governing board, but it's quite another to use that forum for any discussion that could benefit from public input. There are already too few people in the community. Doug Danforth's thread entitled "Killer app" is a case...
by cfbsoftware
Fri Nov 28, 2014 6:56 am
Forum: Component Pascal
Topic: Quick Quiz #1 - DIV and MOD
Replies: 11
Views: 23645

Re: Quick Quiz #1 - DIV and MOD

I wonder how the BlackBox compiler implements MOD & DIV - does anyone know? These look like the relevant lines of code from DevCPC486: (* largeint support *) | div: IF rev THEN DevCPL486.GenFDOp(FDIVR, y) ELSE DevCPL486.GenFDOp(FDIV, y) END; Floor(y, FALSE) | mod: IF y.mode # Reg THEN LoadR(y);...
by cfbsoftware
Wed Nov 26, 2014 11:39 am
Forum: Component Pascal
Topic: Quick Quiz #1 - DIV and MOD - Solution
Replies: 0
Views: 26619

Quick Quiz #1 - DIV and MOD - Solution

1. The main issue is one of operator precedence. The monadic - operator has a lower precedence than the multiplicative operators DIV and MOD. Hence: q := -10 DIV 3; r := -10 MOD 3; are equivalent to: q := -(10 DIV 3); r := -(10 MOD 3); so: q = -3 r = -1 2. However: x := -10; q := x DIV 3; r := x MOD...
by cfbsoftware
Mon Nov 24, 2014 10:38 am
Forum: Component Pascal
Topic: Quick Quiz #1 - DIV and MOD
Replies: 11
Views: 23645

Re: Quick Quiz #1 - DIV and MOD

You have to get the correct answer to win the 'Spoiler of the Day' trophy ;) Better luck next time!

Note:
To avoid winning the 'Spoiler of the Day' trophy please to do not reply with the correct answer or any explanation in a reply until this topic has had at least 100 views.