HerbAndEdnaWeinstein
Technical User
Hi,
I've got a function that uses a DataGrid and a DataSet.
Here it is:
***********************************************
Private Function FindMap(ByVal cpX As Integer, ByVal cpY As Integer, ByVal datagridx As DataGrid, ByVal datasetx As DataSet) As String
blahblahblah
End Function
************************************************
I've got another bit of code that calls the function, and its intended purpose is to parse the proper DataGrid and DataSet name into the function. Here's what it looks like:
************************************************
blahblahblah
dim datagridy as string
dim datasety as string
dim foundmap as string
datagridy = "Datagrid_" & am
datasety = "Dataset_" & am & "1"
foundmap = FindMap(cpX, cpY, datagridy, datasety)
blahblahblah
************************************************
This does not work, because it says that a "String" cannot be converted to type "DataSet" or type "DataGrid". I also tried Ctype()ing datagridy and datasety into DataGrid and Dataset, and of course that didn't work.
So, what's the best, easiest way do get the program to "Do What I Mean?"
Thanks for any ideas!!
Herb
I've got a function that uses a DataGrid and a DataSet.
Here it is:
***********************************************
Private Function FindMap(ByVal cpX As Integer, ByVal cpY As Integer, ByVal datagridx As DataGrid, ByVal datasetx As DataSet) As String
blahblahblah
End Function
************************************************
I've got another bit of code that calls the function, and its intended purpose is to parse the proper DataGrid and DataSet name into the function. Here's what it looks like:
************************************************
blahblahblah
dim datagridy as string
dim datasety as string
dim foundmap as string
datagridy = "Datagrid_" & am
datasety = "Dataset_" & am & "1"
foundmap = FindMap(cpX, cpY, datagridy, datasety)
blahblahblah
************************************************
This does not work, because it says that a "String" cannot be converted to type "DataSet" or type "DataGrid". I also tried Ctype()ing datagridy and datasety into DataGrid and Dataset, and of course that didn't work.
So, what's the best, easiest way do get the program to "Do What I Mean?"
Thanks for any ideas!!
Herb