eNarc
asked on
Getting Errors with a String
Hi I can't get the Caption name into a String? is it possible to do that? without having the & within it?
I'm just wanting the name of the popupmenu caption in a string.
I'm just wanting the name of the popupmenu caption in a string.
var
i: integer;
name:string;
begin
name:=PopupMenu1.Items[i].Caption;//gives error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
keeps saying not a valid component name?
Name:=PopupMenu1.Items[0]. Caption;
Name:=PopupMenu1.Items[0].
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I placed it within a with form1 do begin so it used name for the form, my bad.
ASKER
how would I be able to remove that &?