![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Why using an IIF in a DataTable.Select(IIF("column1=zz", "column2","column3")); is in invalid context ? What is the way for using an IIF in a Datatable.Select(...) ? Thanks for help. sam |
#3
| |||
| |||
|
|
Try placing the IIF inside a CStr() function, because IIF returns an Object, you usually need to convert it. Good Luck! I have drop the IIF in a Convert.ToString() but the compiler says: |
|
Try placing the IIF inside a CStr() function, because IIF returns an Object, you usually need to convert it. Good Luck! -- Nathan Sokalski njsokalski (AT) hotmail (DOT) com http://www.nathansokalski.com/ "sam" <none (AT) none (DOT) fr> wrote in message news:%23tV%2315c4HHA.2108 (AT) TK2MSFTNGP02 (DOT) phx.gbl... Why using an IIF in a DataTable.Select(IIF("column1=zz", "column2","column3")); is in invalid context ? What is the way for using an IIF in a Datatable.Select(...) ? Thanks for help. sam |
#4
| |||
| |||
|
|
Why using an IIF in a DataTable.Select(IIF("column1=zz", "column2","column3")); is in invalid context ? What is the way for using an IIF in a Datatable.Select(...) ? Thanks for help. sam |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |