#1 2024-02-22 23:39:26

blue
Member
Registered: 2023-05-05
Posts: 9

TDocVariantData issue

function TDocVariantData.GetObjectExistingByName(
  const aName: RawUtf8): PDocVariantData;
begin
  // Is this code correct?
  result := GetDocVariantExistingByName(aName, dvArray);
end;

function TDocVariantData.GetArrayExistingByName(
  const aName: RawUtf8): PDocVariantData;
begin
  // and this
  result := GetDocVariantExistingByName(aName, dvObject);
end;

Offline

#2 2024-02-23 07:45:13

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,244
Website

Re: TDocVariantData issue

Did you at least try?

Yes, I guess this is correct, the 2nd parameter is aNotMatchingKind = the reverse expected type.
This is an internal / private method.

Offline

#3 2024-02-23 11:55:23

blue
Member
Registered: 2023-05-05
Posts: 9

Re: TDocVariantData issue

yes, it is right, thank you!

Offline

Board footer

Powered by FluxBB