Ask a Question related to ASP Components, Design and Development.
-
Serve Laurijssen #1
C++ asp component reading vbscript array
have some C++ component that expects two arrays from an ASP script. It's
declared like this:
HRESULT QueryResult::sort(TVariant sortFields, TVariant sortMethod)
To test if the array is created from JScript I use
if ((sortFields.vt & VT_TYPEMASK) == VT_DISPATCH) //is a jscript array
and to test if it's called from VBScript I use
if (sortFields.vt & VT_ARRAY) //VBScript array
But is doesn't work from a VBScript asp page.
When I do the following:
Dim arrSFlags(4)
arrSFlags(0) = False
arrSFlags(1) = False
arrSFlags(2) = True
arrSFlags(3) = False
queryresult.sort arrSFields, arrSFlags
The arrays are not recognized (where vt is tested for VT_ARRAY)
This has been tested in the past and seemed to work, does somebody know the
correct way to retrieve arrays from VBScript?
I tested this under windows2000 SP4
Serve Laurijssen Guest
-
Pass vbscript array contents to page
Hi I have a page with a form and a results page. My form: <form name = "theform" action="results.asp" method="post"> Part of the form is 5... -
[newbie]saving and reading array of associative array
i'm looking for examples of saving to file and reading back an array of associative array, in a ruby like way. saying i have something like : ... -
Reading Lines into an Array
In article <82494aaf900ecc16d654970167a0f4db@free.teranews.com>, nreedr <infomatic@aol.com> wrote: The list does not have to be sorted to remove... -
Passing an array from codebehind to vbscript
Client-side scripting is part of the HTML of the page. All you have to do is loop through the array and build a string of JavaScript that creates...



Reply With Quote

