コミュニティ

The Context doesnt exist in the current context

Hello,

I created a new rule for "Vendor Detect National Currency" so for that I create a new Dataset with values populated from database. Now writing script to Load country code and currency code from DAtaset but getting error while doing it. Here is my script

 

using System;
using System.Data;
using ABBYY.FlexiCapture;

public static string[,] getCountryCurrency() {


IDataSet dataSet = Context.DataSet("VendorCurrencyCode");

IDataSetQuery query = dataSet.CreateQuery();

IRecordset recordSet = dataSet.GetRecords(query);

for (int i = 0; i < recordSet.Count; i++)
{

record = recordSet.GetRecord(i);

string fullName = record.GetValue(0).ToString();

}
// return contry_currency;
}

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

0件のコメント

サインインしてコメントを残してください。