- Getting modules to load. Component Builder 1.5

From: Douglas G. Danforth <"Douglas>
Date: Tue, 20 Mar 2007 13:11:50 -0400

----boundary-LibPST-iamunique-658865150_-_-
Content-type: text/plain

Wayne,
In the first module (call it A) be sure you have marked with '*' those
procedures, variables, constants, and types that you want the second
module (B) to see. To reveal what A looks like to the world type its
name (without .odc) into the log file, highlight the name and then press
Ctrl-D. You should see a window that says DEFINITION A showing
you all the public entities you have exported when tagged with the "*" mark.

If you have exported procedure P in module A then from module B all you need
to do is call it as A.P within some procedure of B, say Caller.

To test all this, at the end of B (after 'END B.' or even in the log
file) place a 'commander'
by typing Ctrl-Q (which shows up as a large black circle) and then the
calling
procedure. For discussion let '()' be that large black circle, then you
type
 ()B.Caller
By clicking on the black circle you execute the procedure B.Caller which
will
then call A.P within it.

Hope this helps.

-Doug Danforth



HajasW{([at]})nowhere.xy
> I am new to Pascal and new to Component Builder. I do have some
> prgramming experience.
>
> I am trying to add some mathematical functions to an existing
> package(WinBugs) developed in Component Builder. I do not wish to
> change the GUI of the existing package.
>
> I can follow some examples and develop a new module and successfully
> compile it. .ocf and .osf files are created. When I look at the
> loaded modules I don't see the module I have successfully compiled.
>
> I am not able to develop a second module that calls the first module
> . Where the first module is called I get "Undeclared Identifier".
> I'm generally confused about what the first function should be called
> when I call it from the second function. I am not sure if the .osf
> and .ocf are going to the right place. And I'm not sure if I'm doing
> the right things in the Rsrc directory.
>
> So I'm looking for some guidance for loading modules. And if somebody
> can point me to some good web-references that would be great.
>
> Thanks very much,
>
> Wayne Hajas
> Pacific Biological Station
> 3190 Hammond Bay Road
> Nanaimo, BC
> Canada
> V9T 6N7
> hajasw{([at]})nowhere.xy
> (250)756-7367
>

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy


----boundary-LibPST-iamunique-658865150_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJv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h0IHRoaW5ncyBpbiB0aGUgUnNyYyBkaXJlY3RvcnkuXHBhcg0K
PiAgXHBhcg0KPiBTbyBJJ20gbG9va2luZyBmb3Igc29tZSBndWlkYW5jZSBmb3IgbG9hZGluZyBt
b2R1bGVzLiAgQW5kIGlmIHNvbWVib2R5IFxwYXINCj4gY2FuIHBvaW50IG1lIHRvIHNvbWUgZ29v
ZCB3ZWItcmVmZXJlbmNlcyB0aGF0IHdvdWxkIGJlIGdyZWF0LlxwYXINCj4gIFxwYXINCj4gVGhh
bmtzIHZlcnkgbXVjaCxccGFyDQo+ICBccGFyDQo+IFdheW5lIEhhamFzXHBhcg0KPiBQYWNpZmlj
IEJpb2xvZ2ljYWwgU3RhdGlvblxwYXINCj4gMzE5MCBIYW1tb25kIEJheSBSb2FkXHBhcg0KPiBO
YW5haW1vLCBCQ1xwYXINCj4gQ2FuYWRhXHBhcg0KPiBWOVQgNk43XHBhcg0KPiBoYWphc3dAZGZv
LW1wby5nYy5jYSA8bWFpbHRvOmhhamFzd0BkZm8tbXBvLmdjLmNhPlxwYXINCj4gKDI1MCk3NTYt
NzM2N1xwYXINCj4gIFxwYXINClxwYXINCi0tLSBCbGFja0JveFxwYXINCi0tLSBzZW5kIHN1Ympl
Y3QgSEVMUCBvciBVTlNVQlNDUklCRSB0byBibGFja2JveEBvYmVyb24uY2hccGFyDQpccGFyDQp9



----boundary-LibPST-iamunique-658865150_-_---
Received on Tue Mar 20 2007 - 18:11:50 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:43 UTC