load_variable

Declaration

load_variable (prof_name, var_name: STRING)

Description

Loads only the variable var_name from the profile prof_name. This is useful if you want to load only one or two variables from a profile. It's faster than load_profile and also avoids the problem of replacing the current profile before you are ready.

See Also

load_profile
load_profile_vars
profile functions
Profile Manager

Example

script check_password is
  real_password := load_variable (given_user, 'password')
  if real_password <> given_password then
    -- permission denied
  else
    -- permission granted
  end
end