TSphinxClientApp.AddSha256Secret Method
Adds a secret to the client as an SHA-256 hash value.
Remarks
Use this method to add a secret to the client application. If the client is confidential - in other
Syntax
Unit: Sphinx.Comp.ClientApp
procedure TSphinxClientApp.AddSha256Secret(const Secret: TBytes);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | Secret | TBytes |
Examples
Imagine you have a file with 20 columns, and column 2 has numbers you want to be imported as text (like phone numbers), and you don't want to import column 10.
You can use the following code to do it:
var ColTypes: TColumnImportTypeArray; Begin SetLength(ColTypes, 10); //You just need to define 10 items, all other columns after 10 will be imported with default formatting.
ColTypes[1] := TColumnImportType.Text; //Import whatever is in column 2 as text.
ColTypes[9] := TColumnImportType.Skip; //don't import column 10.
xls.Open('csv.csv', TFileFormats.Text, ',', 1,1,ColTypes);