{"id":25918,"date":"2022-02-13T21:01:23","date_gmt":"2022-02-13T14:01:23","guid":{"rendered":"https:\/\/tom.ji42.com\/?p=25918"},"modified":"2022-02-13T21:01:23","modified_gmt":"2022-02-13T14:01:23","slug":"between-function-vfox","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=25918","title":{"rendered":"BETWEEN( ) Function &#8211; VFOX"},"content":{"rendered":"<div id=\"header\">\n<table id=\"topTable\" width=\"100%\">\n<tbody>\n<tr id=\"headerTableRow1\">\n<td align=\"left\"><span id=\"runningHeaderText\">Visual FoxPro 9.0 Language Reference<\/span><\/td>\n<\/tr>\n<tr id=\"headerTableRow2\">\n<td align=\"left\"><span id=\"nsrTitle\">BETWEEN( ) Function<\/span><\/td>\n<\/tr>\n<tr id=\"headerTableRow3\">\n<td><a href=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/html\/e2e037eb-727e-47b7-8528-006644120bf0.htm#seeAlsoToggle\">See Also\u00a0<\/a>\u0412\u00a0\u00a0<a href=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/html\/e2e037eb-727e-47b7-8528-006644120bf0.htm#codeExampleToggle\">Example<\/a>\u0412<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table id=\"bottomTable\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><span tabindex=\"0\"><img decoding=\"async\" onerror=\"this.src='https:\/\/tom.tomwork.net\/wp-content\/uploads\/2020\/11\/no-picture-available-icon-1.png'\" id=\"toggleAllImage\" class=\"toggleAll\" src=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/local\/collall.gif\" \/><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div id=\"mainSection\">\n<div id=\"mainBody\">\n<div id=\"allHistory\" class=\"saveHistory\"><\/div>\n<p>Determines whether the value of an expression is inclusively between the values of two expressions of the same type.<\/p>\n<div id=\"syntaxSection\" class=\"section\">\n<div id=\"syntaxCodeBlocks\" class=\"code\">\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th align=\"left\"><\/th>\n<\/tr>\n<tr>\n<td>\n<pre>BETWEEN(<i>eTestValue<\/i>, <i>eLowValue<\/i>, <i>eHighValue<\/i>)<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><!--more--><\/p>\n<h4 class=\"subHeading\">Parameters<\/h4>\n<dl>\n<dt><i>eTestValue<\/i><\/dt>\n<\/dl>\n<dl>\n<dd>Specifies an expression to evaluate.<\/dd>\n<\/dl>\n<dl>\n<dt><i>eLowValue<\/i><\/dt>\n<\/dl>\n<dl>\n<dd>Specifies the lower value in the range.<\/dd>\n<\/dl>\n<dl>\n<dt><i>eHighValue<\/i><\/dt>\n<\/dl>\n<dl>\n<dd>Specifies the upper value in the range.<\/dd>\n<\/dl>\n<\/div>\n<h1 class=\"heading\"><span tabindex=\"0\"><img decoding=\"async\" onerror=\"this.src='https:\/\/tom.tomwork.net\/wp-content\/uploads\/2020\/11\/no-picture-available-icon-1.png'\" id=\"returnValueToggle\" class=\"toggle\" src=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/local\/collapse.gif\" name=\"toggleSwitch\" \/>Return Value<\/span><\/h1>\n<div id=\"returnValueSection\" class=\"section\">\n<p>Logical or null.\u00a0<b>BETWEEN(\u0412\u00a0)<\/b>\u00a0returns True (.T.) if the value of the specified expression is equal to one of the values or greater than the lower value and less than the higher value of the two expressions. Otherwise,\u00a0<b>BETWEEN(\u0412\u00a0)<\/b>\u00a0returns False (.F.).\u00a0<b>BETWEEN(\u0412\u00a0)<\/b>\u00a0returns a null value if\u00a0<i>eLowValue<\/i>\u00a0or\u00a0<i>eHighValue<\/i>\u00a0is a null value.<\/p>\n<\/div>\n<h1 class=\"heading\"><span tabindex=\"0\"><img decoding=\"async\" onerror=\"this.src='https:\/\/tom.tomwork.net\/wp-content\/uploads\/2020\/11\/no-picture-available-icon-1.png'\" id=\"codeExampleToggle\" class=\"toggle\" src=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/local\/collapse.gif\" name=\"toggleSwitch\" \/>Example<\/span><\/h1>\n<div id=\"codeExampleSection\" class=\"section\">\n<p>The following example scans the\u00a0<code>orders<\/code>\u00a0table for all records in the\u00a0<code>order_amt<\/code>\u00a0field with values between 950 and 1000 inclusive and displays the\u00a0<code>cust_id<\/code>\u00a0field and the\u00a0<code>order_amt<\/code>\u00a0field.<\/p>\n<div class=\"code\">\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<th>\u0412<\/th>\n<th><span class=\"copyCode\" tabindex=\"0\"><img decoding=\"async\" onerror=\"this.src='https:\/\/tom.tomwork.net\/wp-content\/uploads\/2020\/11\/no-picture-available-icon-1.png'\" class=\"copyCodeImage\" src=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/local\/copycode.gif\" name=\"ccImage\" align=\"absmiddle\" \/>Copy Code<\/span><\/th>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<pre>CLOSE DATABASES\r\nOPEN DATABASE (HOME(2) + 'Data\\testdata')\r\nUSE orders  &amp;&amp; Open order table\r\n\r\nCLEAR\r\nSCAN FOR BETWEEN(order_amt,950,1000)\r\n   ? cust_id, order_amt\r\nENDSCAN<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h1 class=\"heading\"><span tabindex=\"0\"><img decoding=\"async\" onerror=\"this.src='https:\/\/tom.tomwork.net\/wp-content\/uploads\/2020\/11\/no-picture-available-icon-1.png'\" id=\"seeAlsoToggle\" class=\"toggle\" src=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/local\/collapse.gif\" name=\"toggleSwitch\" \/>See Also<\/span><\/h1>\n<div id=\"seeAlsoSection\" class=\"section\">\n<h4 class=\"subHeading\">Other Resources<\/h4>\n<p><a href=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/html\/beb3b4e1-1953-49c9-9302-bed3d1251d9a.htm\">MAX(\u0412\u00a0) Function<\/a><br \/>\n<a href=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/html\/e8b6141a-899d-4d11-9ccb-30868c64a3b1.htm\">MIN( ) Function<\/a><br \/>\n<a href=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/html\/da6b864f-f7c6-43a3-8218-20d56c7a4764.htm\">Functions<\/a><br \/>\n<a href=\"http:\/\/www.yaldex.com\/fox_pro_tutorial\/html\/6dcddc3f-9944-4ad8-be2f-003610af616a.htm\">Language Reference<\/a><\/p>\n<\/div>\n<\/div>\n<div id=\"footer\">Send\u00a0<a href=\"mailto:DevDocs@microsoft.com?subject=Documentation%20Feedback%20(VFP9.0):BETWEEN(%20)%20Function\">comments<\/a>\u00a0about this topic to Microsoft. \u0412\u00a9 Microsoft Corporation. All rights reserved.<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual FoxPro 9.0 Language Reference BETWEEN( ) Function See Also\u00a0\u0412\u00a0\u00a0Example\u0412 Determines whether the value of an expression is inclusively between the values of two expressions of the same type. BETWEEN(eTestValue, eLowValue, eHighValue)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-25918","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-6K2","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25918"}],"version-history":[{"count":1,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25918\/revisions"}],"predecessor-version":[{"id":25919,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/25918\/revisions\/25919"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}