Venice
Dossier::GetInternalValue
 
Gets the value of the key in the section of the file (internal).
 
VARIANT GetInternalValue (
    BSTR bsFilePath,
    BSTR bsSection,
    BSTR bsKey,
    VARIANT_BOOL bFormatted
)
 
Parameters
bsFilePath
[in] Path of the file containing the value you want to retrieve (can be relative to the current dossier directory).
bsSection
[in] Section of the value you want to retrieve.
bsKey
[in] Key of the value you want to retrieve.
bFormatted
[in] True if you want to retrieve a text that was written in a formatted way to file, otherwise false.
 
Return value
A VARIANT, subtype BSTR, containing the requested value.
 
Remarks
When input parameters are invalid, an exception is thrown.
 
See Also
CreateDossierContext
 
Samples
 
C++
 
// Get the name and capacity from the VAT declaration parameters
VARIANT vValue = pDossier->GetInternalValue("AccPr.ini", "TaxesGenParams", "Name", false);

C#
 
// Get the name and capacity from the VAT declaration parameters
var value = oDossier.GetInternalValue("AccPr.ini", "TaxesGenParams", "Name", false);

VBS
 
Dim vValue

' Get the name and capacity from the VAT declaration parameters
vValue = oDossier.GetInternalValue("AccPr.ini", "TaxesGenParams", "Name", False)

VB.NET
 
Dim vValue As Object

' Get the name and capacity from the VAT declaration parameters
vValue = oDossier.GetInternalValue("AccPr.ini", "TaxesGenParams", "Name", False)