I had a few simple questions I'd like answered. My guess is any experienced developer could answer these pretty easily, thus I will only grade it if all four are answered - correctly.
Displaying Cardinal Values
I want to display the total physical memory on the users system, which I have as a cardinal value, in a Label's caption. The compiler raises an error of incompatible types. How do I convert the cardinal value into something the Label can display. I'd also want to format the value, so if the users memory is 24662016, then I'd want to display 24,662,016.
Paste Picture into DBImage Field
I have a DBImage field that will display an employee's picture. Next to this field is a button that will add a picture stored in the Clipboard to the DBImage field. When I press the button, I get an error - "Cannot assign a TClipboard to a TDBImage", however, if I press CTRL-V, this picture is placed in the DBImage field correctly. Why. My code is below.
procedure TfrmPeople.BitBtn1Click(Sender: TObject);
if not Clipboard.HasFormat(CF_PICTURE) then
MessageDlg('There is not a picture in the clipboard. Copy the picture to the Windows Clipboard, then click Paste. Press F1 for more information.', mtInformation,
How do I re-set the timer component? I want the timer to remove the current password after 300000 (5 minutes) of inactivity. I want the timer to be re-set (i.e., start over from zero) when actions take place. Changing the Interval property won't work. Suggestions?
MAKING RADIOGROUPS BLANK
I want to 'clear' the entries of a RadioGroup. For instance, my RadioGroup has values of Yes or No. How to I 'clear' the group, meaning I don't want either one checked? (Other than re-starting the form).