Solved

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

Posted on 2004-09-29
2
254 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to dynamically set the form action using jQuery.

738 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