关于海康VM4.0软件的问题,如何解决?

VISION MASTER 4.0版本
例:通过扫码获取了二维码字符信息“ABC123”
1.如何写脚本程序使得输出变量1“BC”(我试了试C#中的substring ()可是好像软件没有对应函数)
2.截取上述字符信息,输出变量2,变量如何转换为int型,如output2=12
下面是脚本的基础代码:
using System;
using System.Text;
using System.Windows.Forms;
using Script.Methods;
class UserScript:ScriptMethods,IProcessMethods
{
//the count of process
//执行次数计数
int processCount ;

/// 
/// Initialize the field's value when compiling
/// 预编译时变量初始化
/// 
public void Init()
{
    //You can add other global fields here
    //变量初始化,其余变量可在该函数中添加
    processCount = 0;
   
}

/// 
/// Enter the process function when running code once
/// 流程执行一次进入Process函数
/// 
/// 
public bool Process()
{
    //You can add your codes here, for realizing your desired function
    //每次执行将进入该函数,此处添加所需的逻辑流程处理
    //MessageBox.Show("Process Success");
    
    return true;
}

}