Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6057

Re: Basic

Newsgroups comp.lang.clipper.visual-objects
Date 2013-10-10 07:12 -0700
References <b3b447ee-0ae9-4ff2-aaa9-f1515a72ce34@googlegroups.com> <03392ded-76cf-4a1c-b9c7-a39cf7d6ee36@googlegroups.com>
Message-ID <fd7ff7ff-af7f-4ddb-98a6-e63707bedb16@googlegroups.com> (permalink)
Subject Re: Basic
From dlzc <dlzc1@cox.net>

Show all headers | View raw


On Wednesday, October 9, 2013 7:10:57 AM UTC-7, dlzc wrote:
> Dear Rob Smith:
> 
> 
> 
> On Wednesday, October 9, 2013 4:39:10 AM UTC-7, Rob Smith wrote:
> 
> > 
> 
> > Can someone tell me how Cstart = CLng(#2/24/1906#)
> 
> > translates into VO please.
> 
> 
> 
> This is a Clipper translation, sorry...
> 
> 
> 
> #2/24/1906# => CTOD("2/24/1906")... assuming the date is in system date order.
> 
> 
> 
> ... since dates are already integers, then
> 
> Cstart := CTOD("2/24/1906")

Clipper and variant languages have differentiated the equal sign, since the language is / was loosely typed.

"=" could be either "make the left variable equal to the right expression", or return a logical .T. (or true) if the left expression is equal to the right expression.  And it will permit (in some variants of the Clipper language) that "same" = "sameExcept", but NOT "sameExcept" = "same".  And you trust the compiler to determine from context which you intend.

":=" means only "make the left variable equal to the right expression"

"==" means the two expressions must be identical

JohnMartens is right to suggest using explicit date conversions that are not muddied by date format settings, placing day before month, and/or year before all.

David A. Smith

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Basic Rob Smith <rasmithhalifax@gmail.com> - 2013-10-09 04:39 -0700
  Re: Basic dlzc <dlzc1@cox.net> - 2013-10-09 07:10 -0700
    Re: Basic JohnMartens <martens@tennishulp.info> - 2013-10-09 18:16 +0200
    Re: Basic dlzc <dlzc1@cox.net> - 2013-10-10 07:12 -0700

csiph-web