D
Don Juan
Hi all
I have this:
Dim var1 = From Personal In db1.Data _
Select Personal.Name
Works fine, but I need just declarate de variable in order to put this in IF
or Case structures, something like this:
Dim var1 AS (DataType)
If x=1 then
var1 =From Personal In db1.Data _
Select Personal.Name
Else
var1 =From Personal In db1.DataOld _
Select Personal.Name
End If
Thanks in advanced.
I have this:
Dim var1 = From Personal In db1.Data _
Select Personal.Name
Works fine, but I need just declarate de variable in order to put this in IF
or Case structures, something like this:
Dim var1 AS (DataType)
If x=1 then
var1 =From Personal In db1.Data _
Select Personal.Name
Else
var1 =From Personal In db1.DataOld _
Select Personal.Name
End If
Thanks in advanced.