Add Code

giannimaione

Well-Known Member
Licensed User
Longtime User
Hi all,
how to use Tools ----> Components ----> Add Code ?

Perhaps, i can write a piece of code (routines) in MyCode.txt and to re-use it in various plans (creations) ?
:sign0144:

thanks all

Gianni Maione
 

Cableguy

Expert
Licensed User
Longtime User
Hi

Fro what i remember, the code files are txt files and are added just like the libraries, I think that thay also have to be in the apps dir
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
As Cableguy wrote, you add your code saved as a text file.
The text file will be copied to the application folder.
Unlike the dll files there is no need to distribute the code with your compiled application as it will be compiled (to the same EXE file).
It is also useful for large projects, to allow you to separate the code into several files.
 

giannimaione

Well-Known Member
Licensed User
Longtime User
it (code txt) works very well!!!
 

agraham

Expert
Licensed User
Longtime User
From the original post

Tools ----> Components ----> Add Code ?

The disadvantage is that the code file is copied to the app directory so effectively breaking the link to the original code so that any changes made to the original will not be reflected to the copy, and vice versa.
 
Top