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


Groups > comp.lang.clipper.visual-objects > #11805 > unrolled thread

:Skip() vs :Skip(1)

Started byMartin <Martin@spam.spam>
First post2018-08-09 16:55 +0100
Last post2018-08-30 15:59 -0400
Articles 9 — 6 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  :Skip() vs :Skip(1) Martin <Martin@spam.spam> - 2018-08-09 16:55 +0100
    Re: :Skip() vs :Skip(1) "Jamal" <nospam@example.com> - 2018-08-09 13:55 -0400
    Re: :Skip() vs :Skip(1) dlzc <dlzc1@cox.net> - 2018-08-09 12:14 -0700
    Re: :Skip() vs :Skip(1) "Wolfgang Riedmann" <wriedmann@gmail.com> - 2018-08-10 07:56 +0200
      Re: :Skip() vs :Skip(1) dlzc <dlzc1@cox.net> - 2018-08-10 08:01 -0700
        Re: :Skip() vs :Skip(1) "Wolfgang Riedmann" <wriedmann@gmail.com> - 2018-08-11 04:49 +0200
          Re: :Skip() vs :Skip(1) dlzc <dlzc1@cox.net> - 2018-08-11 14:51 -0700
          Re: :Skip() vs :Skip(1) Steph H <stephn_33@hotmail.com> - 2018-08-30 11:02 -0700
            Re: :Skip() vs :Skip(1) "Jamal" <noooospam@example.com> - 2018-08-30 15:59 -0400

#11805 — :Skip() vs :Skip(1)

FromMartin <Martin@spam.spam>
Date2018-08-09 16:55 +0100
Subject:Skip() vs :Skip(1)
Message-ID<pkho6f$sts$1@dont-email.me>
Does anyone else find the use of :Skip() with no parameter annoying?

I am so tempted to put into a custom skip method

No skip record count, how many records do you want to skip?

Yes been like this since dbSkip(1)

[toc] | [next] | [standalone]


#11806

From"Jamal" <nospam@example.com>
Date2018-08-09 13:55 -0400
Message-ID<pkhv6e$sk7$1@gioia.aioe.org>
In reply to#11805
No! <vbg> 

"Martin"  wrote in message news:pkho6f$sts$1@dont-email.me... 

Does anyone else find the use of :Skip() with no parameter annoying?

I am so tempted to put into a custom skip method

No skip record count, how many records do you want to skip?

Yes been like this since dbSkip(1)

[toc] | [prev] | [next] | [standalone]


#11807

Fromdlzc <dlzc1@cox.net>
Date2018-08-09 12:14 -0700
Message-ID<2a62b47f-e8c6-4607-8607-658386945dd9@googlegroups.com>
In reply to#11805
Hello Martin:

On Thursday, August 9, 2018 at 8:56:00 AM UTC-7, Martin wrote:
> Does anyone else find the use of :Skip() with no
> parameter annoying?

How many functions are there that accept a variable number of parameters, without error, including NO parameters?

> I am so tempted to put into a custom skip method
> 
> No skip record count, how many records do you want
> to skip?
> 
> Yes been like this since dbSkip(1)

Been this way a LOT longer than that.  Was hysterically the SKIP (<n>) command in dBase II.  The default was always "1".

David A. Smith

[toc] | [prev] | [next] | [standalone]


#11808

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2018-08-10 07:56 +0200
Message-ID<ft4np9Fhvd0U1@mid.individual.net>
In reply to#11805
Hi Martin,

> Does anyone else find the use of :Skip() with no parameter annoying?

no. Most :Skip() methods I have in my code are parameterless. I specify
the parameter only if I need to go backwards :Skip( -1 ), or reread the
current record :Skip( 0 ). I have never used another parameters than -1
or 0 with this method.

Wolfgang


-- 

[toc] | [prev] | [next] | [standalone]


#11809

Fromdlzc <dlzc1@cox.net>
Date2018-08-10 08:01 -0700
Message-ID<58c518ea-e438-4350-8329-c1dee6c8bfc3@googlegroups.com>
In reply to#11808
Dear Wolfgang Riedmann:

On Thursday, August 9, 2018 at 10:56:59 PM UTC-7, Wolfgang Riedmann wrote:
...
> or reread the current record :Skip( 0 ).

That is more elegant than:
   go recno()

I was never sure it would refresh from file, or just buffer, your way.

David A. Smith

[toc] | [prev] | [next] | [standalone]


#11810

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2018-08-11 04:49 +0200
Message-ID<ft715oF3ltkU1@mid.individual.net>
In reply to#11809
Hi David,

> On Thursday, August 9, 2018 at 10:56:59 PM UTC-7, Wolfgang Riedmann
> wrote:  ...
> > or reread the current record :Skip( 0 ).
> 
> That is more elegant than:
>    go recno()
> 
> I was never sure it would refresh from file, or just buffer, your way.


I'm using a buffered server all the time, so a skip( 0 ) refreshs the
buffer.

Wolfgang

-- 

[toc] | [prev] | [next] | [standalone]


#11811

Fromdlzc <dlzc1@cox.net>
Date2018-08-11 14:51 -0700
Message-ID<4c1dc314-dc69-480b-80e1-9d657cbfe760@googlegroups.com>
In reply to#11810
Dear Wolfgang Riedmann:

On Friday, August 10, 2018 at 7:49:30 PM UTC-7, Wolfgang Riedmann wrote:
> Hi David,
> 
> > On Thursday, August 9, 2018 at 10:56:59 PM UTC-7, Wolfgang Riedmann
> > wrote:  ...
> > > or reread the current record :Skip( 0 ).
> > 
> > That is more elegant than:
> >    go recno()
> > 
> > I was never sure it would refresh from file,
> > or just buffer, your way.
> 
> 
> I'm using a buffered server all the time, so
> a skip( 0 ) refreshs the buffer.

Hence, "elegant".  I figured it worked, or you'd not continue doing it.  I had (in the past) feared doing it.

David A. Smith

[toc] | [prev] | [next] | [standalone]


#11856

FromSteph H <stephn_33@hotmail.com>
Date2018-08-30 11:02 -0700
Message-ID<d234af1b-5cc5-4b02-833e-7208d1e02d1c@googlegroups.com>
In reply to#11810
> I'm using a buffered server all the time, so a skip( 0 ) refreshs the
> buffer.
> 
> Wolfgang

Looking at the DBServer:Skip() method in the SDK shows that 0 has no effect...

Steph

[toc] | [prev] | [next] | [standalone]


#11857

From"Jamal" <noooospam@example.com>
Date2018-08-30 15:59 -0400
Message-ID<pm9iac$d11$1@news.albasani.net>
In reply to#11856
Look again! Line 72.

Jamal

"Steph H"  wrote in message 
news:d234af1b-5cc5-4b02-833e-7208d1e02d1c@googlegroups.com...

> I'm using a buffered server all the time, so a skip( 0 ) refreshs the
> buffer.
>
> Wolfgang

Looking at the DBServer:Skip() method in the SDK shows that 0 has no 
effect...

Steph 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web