Nyana22
asked on
call a function in a function declaration within the same class
Hello,
I have one VB class file : CLS
I have a function FCT1 as dataset declared in the CLS.
I want to have another function FCT2 that also return a dataset based on FCT1.
So in the FCT2 declaration i defined a dataview dv,
Why i cannot write :
dv = FCT1.Tables("datasetName")
How can i base my operation in the FCT2 on the dataset returned from FCT1?
thanks
I have one VB class file : CLS
I have a function FCT1 as dataset declared in the CLS.
I want to have another function FCT2 that also return a dataset based on FCT1.
So in the FCT2 declaration i defined a dataview dv,
Why i cannot write :
dv = FCT1.Tables("datasetName")
How can i base my operation in the FCT2 on the dataset returned from FCT1?
thanks
ASKER
no,
but i guess it worked
what default view did??
thanks
but i guess it worked
what default view did??
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok thanks a lot,
one last thing:
if FCT1 returns a datatable with f1,f2,f3,f4.
how can i choose in my dataview f1,f2?
thanks a lot
one last thing:
if FCT1 returns a datatable with f1,f2,f3,f4.
how can i choose in my dataview f1,f2?
thanks a lot
ASKER
f1...f4 are fields in the datatable
What are f1,f2,f3, ... ? Records ?
ASKER
they are column.
Why do you want that ?
You then can get the single column using dv.Item("ColumnName")
You then can get the single column using dv.Item("ColumnName")
dv = FCT1.Tables("datasetName")