Is there a way to ask a user for a picture so that it can be used as a user pic in the publication? I’m trying to mimic the following code but not having any luck.
function OnPubLoaded: Boolean;
var S: String;
begin
// Checks whether the user was already prompted.
// If the TheUserName global variable already has a value, then we do not
// prompt the user again.
if GetGlobalVar(“TheUserName”, “”) <> “” then exit;
// Prompts the user then:
S := InputBox(“Please enter your name”, “What is Your Name”, “”);
// If the user does not give a name, set it to “Mysterious user”…
if S = “” then
S := USER"
else
begin
// Stores the result only if the user has given a name.
// So he/she will still be prompted the next time.
SetGlobalVar(“TheUserName”, S, True);
// True means that the global variable is stored.
end;
// When the publication is starting and before the homepage is displayed.
// Set Result to True if you want to exit immediately without any warning.
Result := False;
end;