B4PObjects

RacingDog

Active Member
Licensed User
I'm sure I asked years ago, but searching didn't reveal it, but is there any documentation that indicates which number should be used in which circumstances. The normal help shows some speficic uses, but what is the full list. A grotty text file would suffice.
 

mjcoon

Well-Known Member
Licensed User
B4PObjects are used by library authors to get references to internal structures. They are not useful in other contexts. It is also difficult to explain their meaning as it they reference internal structures.

I don't really understand why the specific Help hints are not sufficient, such as:
FormLib.New1("Form1", B4PObject(1))

On the other hand I don't understand what use that second invariant argument is, either...

Mike.
 

agraham

Expert
Licensed User
Longtime User
Only library objects (including the Door library Object or ObjectArray) can see the return values of B4PObject(x) so the docs for the library will indicate what the value of x should be where x is :-

1: CRunner, the interpreter instance in the IDE, or b4p, the Basic4ppc class instance when compiled.

2: htControls, the hashtable containing all the controls and library objects in the application.

4: B4PDir, the path to the folder containing the application sbp or exe.

5: a Form, the main Form instance of the application.

6: an Exception, the last Exception caught by ErrorLabel.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…