Link to home
Start Free TrialLog in
Avatar of Nyana22
Nyana22Flag for Canada

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
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Have you tried
dv = FCT1.Tables("datasetName").DefaultView
 
Avatar of Nyana22

ASKER

no,
but i guess it worked
what default view did??
thanks
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nyana22

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
Avatar of Nyana22

ASKER

f1...f4 are fields in the datatable
What are f1,f2,f3, ... ? Records ?
Avatar of Nyana22

ASKER

they are column.
Why do you want that ?
You then can get the single column using dv.Item("ColumnName")