Solved

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

Posted on 2004-09-29
2
243 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
2 Comments
 
LVL 5

Expert Comment

by:php-webdesign
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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 create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now