DateTime, Duration and Time argument creation ( Avoid AV )
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@973 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
2d2920da93
commit
08f0ab3254
@ -5743,6 +5743,8 @@ begin
|
||||
try
|
||||
strBuffer := '';
|
||||
AStore.GetScopeInnerValue(TypeInfo(string),strBuffer);
|
||||
if ( AObject = nil ) then
|
||||
AObject := Create();
|
||||
(AObject as TBaseDateRemotable).AsString := strBuffer
|
||||
finally
|
||||
AStore.EndScopeRead();
|
||||
@ -6513,7 +6515,9 @@ begin
|
||||
try
|
||||
strBuffer := '';
|
||||
AStore.GetScopeInnerValue(TypeInfo(string),strBuffer);
|
||||
TDurationRemotable(AObject).Parse(strBuffer);
|
||||
if ( AObject = nil ) then
|
||||
AObject := Create();
|
||||
TDurationRemotable(AObject).AsString := strBuffer;
|
||||
finally
|
||||
AStore.EndScopeRead();
|
||||
end;
|
||||
@ -6881,6 +6885,8 @@ begin
|
||||
try
|
||||
strBuffer := '';
|
||||
AStore.GetScopeInnerValue(TypeInfo(string),strBuffer);
|
||||
if ( AObject = nil ) then
|
||||
AObject := Create();
|
||||
if IsStrEmpty(strBuffer) then
|
||||
(AObject as TTimeRemotable).Clear()
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user