2016-09-29 19 views
0

1クラスから別のクラスにいくつかのパラメータを渡そうとしています。custom CustTable Event Handlerからcustom Document Matrix classに渡します。私は顧客の電子メールを通過したい引数が必要な型と互換性がありません

、私が使用しています:

DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Email) 

と文字列EDTにそれを通過します。

これは私にエラーを与える:

Argument is incompatible with required type

はどのようにして、パラメータのパススルーを変更することができますので、私は、文字列EDTに返す値を埋めることができますか?あなたが取得しようとする場合

+0

我々はより多くのコードと詳細情報を必要とします。あなたが呼び出しているもののメソッド宣言は何ですか?そして引数を渡しますか?イベントハンドラであれば、 'xppprepostargs'が必要と思われます。https://msdn.microsoft.com/en-us/library/xppprepostargs.aspxを参照してください。 –

答えて

1

をあなたが使用することができますお客様の電子メールを取得したい場合:

CustTable custTable; 

custTable.email(); 

email()メソッドは、顧客のプライマリ電子メールを返します。プライマリではなく他の電子メールが必要な場合は、email()メソッドでどのように行われているかを確認できます。

よろしく、 クリスチャン

1

この機能DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Email)リターンLogisticsElectronicAddress

電子メールの値は、この方法を試してください。

LogisticsElectronicAddressLocator _LogisticsElectronicAddressLocator; 
LogisticsElectronicAddress  _LogisticsElectronicAddress; 

; 

_LogisticsElectronicAddress = DirParty::primaryElectronicAddress(custTable.Party, LogisticsElectronicAddressMethodType::Email); 
_LogisticsElectronicAddressLocator = _LogisticsElectronicAddress.locator; //E-mail value 
関連する問題