load_profile_vars

Declaration

load_profile_vars (name: STRING)

Description

Loads only the variables from the profile name. This is useful if you want to load the variables from a profile without changing the current user or changing the items in the database of the profile.

If you have a utility that runs separately from your main project that reads profiles stored in the main project and aggregates diagnostic data from them, you use this function. That avoids the problem of integrating the profile's stored database with the current database, which is different that the one the profile was stored with. See Profile Manager for more on the risks of loading a profile in different projects.

This function is also faster than calling load_profile because it doesn't load the item database.

See Also

load_profile
load_variable
profile functions

Profile Manager

Example

script build_report is
  num_profiles := token_string_count (profile_names)
  i := 0;
  while i < num_profiles loop
    prof_name := token_string_item (profile_names, i)
    load_profile_vars (prof_name)
    -- do something with the variables
    i := i + 1
  end
end