A
Adrian
Hi all
..Net Framework 1.1
vb.net
We use the Select-Method of the DataTable class to retriev data. The select
statement is as follows:
myDeDT.Select("Pers_Name = 'Adrian '")
Please look exactly at the content of the parameter! There is a space at the
end of Adrian included! This must be like this, because the data is stored
in the database in this way.
This field Pers_Name is not a primary key field.
Now we assume that we have two rows in the datatable with the following
values in the Pers_Name field:
Row 1: 'Adrian'
Row 2: 'Adrian '
One with the space at the end, and one without.
With the DataTable.Select-Method we receive now both rows as result! Why?
Is this a bug? Can i set somewhere a property to tell the DataTable that he
should not remove spaces from the parameter values?
Thank you for your help
Adrian
Please remove NOSPAM from my reply email address.
..Net Framework 1.1
vb.net
We use the Select-Method of the DataTable class to retriev data. The select
statement is as follows:
myDeDT.Select("Pers_Name = 'Adrian '")
Please look exactly at the content of the parameter! There is a space at the
end of Adrian included! This must be like this, because the data is stored
in the database in this way.
This field Pers_Name is not a primary key field.
Now we assume that we have two rows in the datatable with the following
values in the Pers_Name field:
Row 1: 'Adrian'
Row 2: 'Adrian '
One with the space at the end, and one without.
With the DataTable.Select-Method we receive now both rows as result! Why?
Is this a bug? Can i set somewhere a property to tell the DataTable that he
should not remove spaces from the parameter values?
Thank you for your help
Adrian
Please remove NOSPAM from my reply email address.