I need to know the user name and other data of the logged-in user in a project organized using BPLs. That is, how and where do I need to declare the user object and its creation, and how to get access to that object when a package is loaded at runtime? I don't have enough experience working with packages.
How to get access to an object between dynamically loaded packages?
137 Views Asked by LUIS A. GAMA At
2
There are 2 best solutions below
0
fpiette
On
There is nothing special to use objects in a package. You just add the unit name where the object is defined to the uses clause of the unit where the object is to be used.
You should really read the documentation on this topic. The you may ask more questions to clarify things you don't understand.
Related Questions in DELPHI
- How can I read the header of request to webserver
- Receiving Notifications for Individual Task Completion OmniThreadLibrary Parallel.ForEach
- Delphi - How to get result of function from QuickReport without viewing a report?
- Out of memory while adding documents to a Firebird BLOB field with Delphi
- How to MakeScreenshot fullpage on Delphi
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- How to Dynamically Add Controls to Delphi Form
- How to write a string in Stringrid with DelimitedText in FMX Delphi 11
- TGrid/TStringGrid multi cell selection / multi editing in delphi firemonkey (12)
- How to localize "Today" in the Delphi TMonthCalendar?
- How can I call a SOAP webserver method in Vue.js?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Delphi can not compile the unit create by its "XML Data Binding Wizard"
- Save Form Properties in File and then restore those Properties after reopening
- Is it possible to open a blob without saving it to file
Related Questions in PACKAGE
- How to install libfuse2 on Ubuntu 22.04
- chatbot respond to onequery type
- How to get argument from Command line for my python package
- How can I record the entire screen outside of my Flutter app or control a specific area for recording, including sound?
- hashcat : Depends: libminizip1t64 but it is not installable E: Unable to correct problems, you have held broken packages
- OS: Parrot OS (hashcat : Depends: libminizip1t64 but it is not installable)
- Flutter: when I try to hot reload to run the app I get this error when using carousel slider "Error: Couldn't resolve the package 'carousel_slider "
- Could not create '.egg-info': The system cannot find the file specified
- How to implement facebook pixel in flutter in 2024 any example?
- Flutter error on using local_auth package and conflicts with other packages
- Eclipse: "package...does not exist" when building a Maven package that references a class in another project
- Execution failed for task ':app:compileFlutterBuildDebug'. > Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1Error:
- Export and create package of c++20 modules
- Enforce schema on schemaless DynamoDB database
- Problem with the packages file in my flutterflow project on Visual Code Studio
Related Questions in GLOBAL-VARIABLES
- Automatically importing a util module into every file in NodeJS
- How can I use a variable that is defined in one script in a different script in Unity
- Global variable isn't being recognized across functions in python with tkinter
- Why is my function overwriting global variable values that are passed to it?
- Global or accesing global variable datetime string dynamically in web form application using Visual Studio 2022
- What functions can access a global variable that appears in the same file with them?
- I'm having trouble trying to export the data from an object in Flutter using get_it
- Global variable value doesn't change in ISR in C
- Get configuration or global variables into modules definition in NestJS
- How I can reassign value inside of onMount() in sveltekit?
- Best way to use re.sub with a different behavior when first called
- global variables not being updated/ imported properly across modules
- Why does the function always return 0? (function + tkinter + global variables)
- How to set parent variable within a loop in a shell script?
- What could cause linking errors with global variables in header and cpp file?
Related Questions in GLOBAL-SCOPE
- How to avoid shadowing the window.close function?
- get data from coroutine globalScope in Room database kotlin
- Expose Functions Using Webpack & Then Call Them From an Inline Script
- Laravel - Controller dependency is injected before middleware is executed
- GAS files: how to free global space from polution?
- Ambiguous column in left-join in global scope
- Dataflow Streaming Job Error: name 'function' is not defined. How to create a global function for all Dataflow steps
- Laravel - Global scopes and relationship check -undefined property
- Snowflake Global function and variable
- Laravel Global Scope Custom Message when Not Found
- Laravel Global Scope apply function runs twice
- Any benefit/drawback/possibility of using getDataRange/getValues outside of a function
- Why am I not changing the global scope the way I thought
- Operator overloading on the global scope in qt/c++ is giving me the multiple definition compile error
- How to make belongsToMany relation respect global scopes defined inside pivot model
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In a regular app, for the programmer there is no difference between using runtime packages or all in a single exe You can change the project to go with runtime packages or not, and your code won't change at all
That changes when you make a modular app that loads BPL modules on demand, chosing at runtime if a given module will be load, and doing it dynamically (ex. app made with a plugin-architecture in mind), then you need to design your own strategy to handle that
Myself, I work in that second way, and I do have some main modules wich give services to the "plugins", so when they are loaded, they do register themselves with the system: user control, navigation, whatever