Re: Transferring data to heterogeneous clients



Your WebMethod was returning Object, wasn't it? Instead, is should return
GenericTable() (which is "Array of GenericTable"). Why does it need to
return Object?
--
John Saunders [MVP]

I posted a replay on May 4th but I cannot see it so I will try to
posted again.

I cannot cast my WebMethod as array of GenericTable class because this
class doesn't exist at design time. If I try I get error which say:
Type 'GenericTable' is not defined'.

Looks like I wonn't be able to create generic functionality unless I
define generic class with predefined number of public members and use
this class no for every request which will return result of the SELECT
statement. Class may look like:

Public Class GenericTable
Public Col1 As String
Public Col2 As String
...
Public Col25 As String
End Class

The problem with this aproach is that I won't be able to return result
sets with number of columns bigger than the number of public memebers
of GenericTable class. Additionally it seams like not very economical
solution since every return set will have the same number of columns
even if SELECT statement would return only 2 columns.

.



Relevant Pages

  • Re: string to array
    ... Bob Barrows [MVP] wrote: ... Earlier responses had mentioned using InStr, and since abcd kept asking, I ... also provides the position of that character in the string. ... how can I convert this string into array so that I get the values ...
    (microsoft.public.scripting.vbscript)
  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)
  • Re: passing a string to a dll
    ... Joe, I really appreciate you taking the time to demonstrate this. ... sure how I would implement indexing it for random alphanumeric codes. ... I might handle the array. ... I actually have been wondering if I could use a second string ...
    (microsoft.public.vc.mfc)
  • Re: passing a string to a dll
    ... I might handle the array. ... I actually have been wondering if I could use a second string ... look at insertion cost, organization cost, and search cost. ...
    (microsoft.public.vc.mfc)
  • RE: Structure conversion from C++ to VB-2008?
    ... One of the most important structures is AmiVar structure. ... point number, the array of floating point numbers, a string or IDispatch ... Dim 13012679 as Integer ...
    (microsoft.public.dotnet.languages.vb)

Quantcast