From 2badf39c4fb4354e0bf5d5f4463a8a044db27fde Mon Sep 17 00:00:00 2001 From: Roland Bengtsson Date: Fri, 6 Dec 2024 23:29:42 +0200 Subject: [PATCH] Allow VariableHandle w/o system but with type. #20 --- Source/BoldVariableHandle.pas | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/BoldVariableHandle.pas b/Source/BoldVariableHandle.pas index b7f0c1b..b97a939 100644 --- a/Source/BoldVariableHandle.pas +++ b/Source/BoldVariableHandle.pas @@ -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}