🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #249

Re: 5.5 - 7.0

#249
From: Romain Strieff [TeamB]
Date: Fri, 18 Dec 1998 00:00
37 lines
1397 bytes
In article <36758B4C.EA29368B@ibm.net>, kobi politely paraphrased...
> I am trying to figure how to make the below code working in to 7.0.  I
> am
> migrating from visual dbase 5.5 to visual dbase 7
> 
> select order
>       set filter to
>       go top
>       i=0
>       scan
>          i=i+1
>          if substr(dealer->filfild,i,1)="*"
>             replace curdealer with "*"
>          else
>             replace curdealer with " "
>          endif
>       endscan
> 
Just curious, what are you doing here exactly? Perhaps there is an 
easier way for _both_ versions. Since i is augmented for every record it 
can only be a small dealer table anyway.

Does your filfild look like this?


'*gfgfgfgfgffgfgf'
'g*fgfgfgfgffgfgf'
'gfg*fgfgfgffgfgf'
'gfgf*gfgfgffgfgf'
'gfgfg*fgfgffgfgf'

-- 
Romain Strieff [TeamB]
Please read this newsgroup guide below before 
posting on the private Inprise newsgroups.
http://www.inprise.com/newsgroups/guide.html
--
Technical Details
Message-ID: <MPG.10e41df65798494e989bb6@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36758B4C.EA29368B@ibm.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,1684bdcbf6edd00b
X-Google-Attributes: gidff5a1,public
From: teamb@opto-pps.com (Romain Strieff [TeamB])
Subject: Re: 5.5 - 7.0
Date: 1998/12/18
Message-ID: <MPG.10e41df65798494e989bb6@forums.inprise.com>
X-Deja-AN: 423538441
References: <36758B4C.EA29368B@ibm.net>
Organization: TeamB
Newsgroups: borland.public.vdbase.data.sql