Click here to Skip to main content
16,011,754 members

Comments by gspeedtech (Top 8 by date)

gspeedtech 14-Jul-11 13:31pm View    
If I try to change it, it wont accept dr instead of bo

.CustomerID = dr.CustomerID(CustomerID is not a member of System.Data.DataRow)
gspeedtech 10-Jun-11 18:07pm View    
Thanks
gspeedtech 10-Jun-11 18:06pm View    
Thanks
gspeedtech 3-Jun-11 16:47pm View    
If I try:

Dim TransactionData as datarow
For Each TransactionData In z_Transaction
Regex.Replace(TransactionData, "vbCrLf", " ")
Next
End If

I get a "datarow cannot be converted to a String" error on the "Replace" line of code.

If I try
Dim TransactionData as String

I get a similar conversion error.
gspeedtech 3-Jun-11 12:00pm View    
Thanks for the reply,

My problem is, according to my limited knowledge, "Replace" only works on String objects.
How do you For/Each through a collection of Objects and target only the String objects?