Skip to content

Commit

Permalink
Allow VariableHandle w/o system but with type. #20
Browse files Browse the repository at this point in the history
  • Loading branch information
bero committed Dec 6, 2024
1 parent 4d8f323 commit 2badf39
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/BoldVariableHandle.pas
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ function TBoldVariableHandle.GetValue: TBoldElement;
begin
if not (csDesigning in ComponentState) and not (csLoading in ComponentState) then
begin
// if not assigned(StaticSystemHandle) then
// raise EBold.CreateFmt(sNoSystemHandle, [classname, 'GetValue', name]); // do not localize
if not assigned(StaticBoldType) then
raise EBold.CreateFmt(sValueTypeNameInvalid, [classname, name, ValueTypeName]);
if not assigned(StaticSystemHandle) and not assigned(StaticBoldType) then
raise EBold.CreateFmt(sNoSystemHandle, [classname, 'GetValue', name]); // do not localize
end;

if {not (csDesigning in ComponentState) and}
Expand Down

0 comments on commit 2badf39

Please sign in to comment.