The variable is configured like:
Variable Name = “ProjectPath”
Type = “Variant”
Group Name = “Directories”
Default Value = “%FBPROJECTDIR%…”
Comment = “some comment”
Steps
Open the “Edit Variables” dialog
Double click on the item.
Change type to String
The checkbox remains disabled, though.