our $LoggedOn_user_id = 0;
Initializing variable. Later modified with data I want to share to other unit,
Unit? Module? same difference, is it not?
No on the var names being duplicated. Did multiple searches. Only one declaration with values loaded at different locations in program.
This whole program is for a landlord association. Member logs on. Drill down to their status which is loaded into dataset displayed on form (using their unique id passed with $LoggedOn_user_id to the unit generating/displaying dataset. Display includes the number of tenants associated with this member. Next step is to drill down with click on that number to pull up another dataset of all tenants to display.
When I manually set value in calling unit:
#$userid_1 = manageusers::LoggedOn_user_id; #$userid_1 = $manageusers::LoggedOn_user_id; #$userid_1 = $LoggedOn_user_id; $userid_1 = 428;
It of course works fine.
Have another global
$adminaccess = ($username1 eq "admin");
Passing variables not new.