Skip to main content
Version: v6.5.0

Get template name

Command Description

Get the template name in the Information Extraction result

Command Prototype

sRet = Mage.ExtractTextExtractName(value)

Command parameter

parametermandatorytypedefault valueInstructions
valueTrueexpressionvalueUse the "Information Extraction" command to output the variable to and cycle through the value

Return result

SRet, Assign the result of running the command to this variable.

Run instance

/*********************************Get Template Name***************************************
Command Prototype:
sRet = Mage.ExtractTextExtractName(value)
Input Parameters:
value -- The recognized content extracted by the information extraction command. Note: The value obtained by using the output variable of the "Information Extraction" command and iterating through it.
Output Parameter:
sRet -- The variable where the output of the function call will be saved.
Notes:
1. Must be used in combination with the text or file information extraction command.
********************************************************************************/
Dim arrayRet = ""
Dim sRet = ""
arrayRet = Mage.NLPTextFileExtract(@res"Evaluation Set - Disclosure Announcements of Listed Companies.txt",{"Pubkey":Pubkey,"Secret":Secret,"Url":"https://mage.uibot.com.cn"},30000)
For Each value In arrayRet
sRet = Mage.ExtractTextExtractName(value)
TracePrint(sRet)
Next