Count rows in dataset to prevent error

edvBuyerName.dataView.Count

________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of randyweb
Sent: Wednesday, October 26, 2011 2:24 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Count rows in dataset to prevent error



v9.05.606

Count rows in dataset to prevent error
I have a piece of code that gets the buyer email address from Quote Contact table:

1) Dim edvBuyerName As EpiDataView CType(oTrans.EpiDataViews("QuoteCnt"), EpiDataView)

2) Dim BuyerName As String = edvBuyerName.dataView([edvBuyerName].Row)("Name")

Line 2 returns an error if there are no contacts in the quote.

How do I count the rows before this line so I can generate a message?

Thanks in advance
Randy





[Non-text portions of this message have been removed]
v9.05.606

Count rows in dataset to prevent error
I have a piece of code that gets the buyer email address from Quote Contact table:

1) Dim edvBuyerName As EpiDataView CType(oTrans.EpiDataViews("QuoteCnt"), EpiDataView)

2) Dim BuyerName As String = edvBuyerName.dataView([edvBuyerName].Row)("Name")

Line 2 returns an error if there are no contacts in the quote.

How do I count the rows before this line so I can generate a message?

Thanks in advance
Randy