B4R Question Inline C: List of methods of B4R::Object* ?

Martin Larsen

Active Member
Licensed User
Longtime User
You can pass a parameter to native C functions like explained her: https://www.b4x.com/android/forum/threads/inline-c-c.65714/

B4X:
#if C
#include <Narcoleptic.h>
void Delay (B4R::Object* o) {
   Narcoleptic.delay(o->toULong());
}
#End if

The code above uses o->toULong(). From other posts I have seen toLong, ToPointer and WrapNumber.

Is there somewhere a list of these helper methods available for the B4R::Object*?
 

Martin Larsen

Active Member
Licensed User
Longtime User
Thanks!

That's not beginner friendly though. The header file only gives the signature. No explanation of what they are for and how they are used.

There really should be a post with a list of these methods. Preferably in the thread referred to in my first post.

EDIT: When I dig a bit deeper into B4R I will make a list.
 
Last edited:
Upvote 0
Top