Solved

vbscript/ado question... using the Param "SortDirection"

Posted on 2004-09-29
2
252 Views
Last Modified: 2010-04-06
what does the "value =-1"  mean in the  parameter value for "SortDirection"?  the field type is boolean.  I thought it should be either 1 or 0;  for true or false.
see example below:

      <object classid="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33" height="1" id="dc" VIEWASTEXT>
            <param NAME="ExecuteOptions" VALUE="2">
            <param NAME="FetchOptions" VALUE="3">
            <param NAME="SortDirection" VALUE="-1">
            <param NAME="InternetTimeout" VALUE="300000">
      </object>      
0
Comment
Question by:Mike Johnson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Expert Comment

by:php-webdesign
ID: 12178963
maybe like with mysql...

ASC and DESC (ascending and descending sorting)

+1 asc
-1 desc

not sure though
0
 
LVL 4

Accepted Solution

by:
willcode4coffee earned 125 total points
ID: 12179252
It is boolean. The reason you are seeing -1 in that example is because Access and VB use -1 by default to indicate a boolean True. Actually, any non-zero value should evaluate as true and zero evaluates as false.

M@
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question