| Author |
locate for sub-string in a big-string
|
|
|
| I want test phone number if located inside a field contains many phone
numbers. What commands should be used ?
Ex:
locate for "0122848494"=="0122848494-0106677219-0106677469 "
if found()
do code1
else
do code2
endif
Thnks
| |
| Detlef Hoefner 2005-03-05, 8:55 pm |
| Hi Happy,
if purchased( Clipper )
use NortonGuide
locate 'operator $'
else
ask silly questions
endif
| |
| Klas Engwall 2005-03-06, 3:55 am |
| Detlef,
>if purchased( Clipper )
> use NortonGuide
> locate 'operator $'
>else
> ask silly questions
>endif
I doubt that the statement after the else clause will compile
correctly. I belive the correct syntax is
StopAsking( sllly_questions )
Klas
-------
klas dot engwall at engwall dot com
http://www.engwall.com/clipper/
The LFN Library for Clipper
The LanMan Library for Clipper
The NFPAT1A Timeslice release patch for the Nanforum Toolkit
| |
| Joe Wright 2005-03-06, 3:55 am |
| happy wrote:
> I want test phone number if located inside a field contains many phone
> numbers. What commands should be used ?
> Ex:
>
> locate for "0122848494"=="0122848494-0106677219-0106677469 "
> if found()
> do code1
> else
> do code2
> endif
>
> Thnks
>
locate for phone $ "0122848494-0106677219-0106677469 "
--
Joe Wright mailto:joewwright@comcast.net
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
| |
| E. Fridman 2005-03-06, 3:55 pm |
| Happy,
Sorry for the somewhat off-topic question.
Since you obviously not very familiar with Clipper, what computer
language(s) are you fluent in? Knowing this might get us a reference
point in answering your questions.
| |
| Klas Engwall 2005-03-07, 3:55 pm |
| Eugene,
>Since you obviously not very familiar with Clipper, what computer
>language(s) are you fluent in? Knowing this might get us a reference
>point in answering your questions.
He came to the newsgroup asking for a free copy of Clipper, and
apparently someone was stupid enough to send it to him. But pirated
software doesn't come with docs and he doesn't have a clue about
Clipper, so he is trying to use us as his online manual. If we help
him out with all those questions we indirectly support his use of
stolen software.
His message on January 5th:
"For certain reasons I need a help from somebody to send to me latest
version of clipper compiler in zipped fromat to my E-mail please :
ehab_aziz2001@yahoo.com"
For certain reasons we should stop answering those questions.
Klas
-------
klas dot engwall at engwall dot com
http://www.engwall.com/clipper/
The LFN Library for Clipper
The LanMan Library for Clipper
The NFPAT1A Timeslice release patch for the Nanforum Toolkit
| |
| Detlef Hoefner 2005-03-07, 3:55 pm |
| "Klas Engwall " wrote:
>I doubt that the statement after the else clause will compile
>correctly. I belive the correct syntax is
>
>StopAsking( sllly_questions )
Klas,
thanks for enhancing my code ;- ))
4 your info : version beta02 ...
if purchased( Clipper )
use NortonGuide
else
Change2NG( "warez_friendz" )
endif
Have a nice Day,
Detlef
| |
| E. Fridman 2005-03-07, 3:55 pm |
| Klas,
<<< If we help him out with all those questions we indirectly support
his use of
stolen software. >>>
Currently neither use nor support use of pirated software. But I
and/or my US employers can afford it.
In my early days (back in USSR ) almost all commercial software we used
was illegally reproduced. I did (through my employer) buy a copy of
Summer '87 and upgrade to 5.0 from Nantacket rep when another
economical climate was established. I was very proud and it never
crossed my mind that we needed a copy for every programmer in the
group.
I do not know where ehab resides but it is possible that buying a legal
copy from Brian is simply not an option for him.
I received a lot of help first in Compuserve's NANFORUM and then here.
If in turn I can help others I try to. Very often you just need to
point a fellow Clipper-head in the right direction or provide a quick
hint and they do the rest.
With Ehab/Happy it is not even clear how to help him, since I could not
ascertain his programming level. That's why I asked the question. If
Clipper is not his first programming experience ever then we might give
him references to similar constructs and/or approaches in the
language(s) he does know.
| |
| clipperace 2005-03-08, 8:55 am |
|
"E. Fridman" <pm771.am@gmail.com> wrote in message
news:1110211410.851408.146000@g14g2000cwa.googlegroups.com...
> Klas,
>
> <<< If we help him out with all those questions we indirectly support
> his use of
> stolen software. >>>
>
>
> Currently neither use nor support use of pirated software. But I
> and/or my US employers can afford it.
>
> In my early days (back in USSR ) almost all commercial software we used
> was illegally reproduced. I did (through my employer) buy a copy of
> Summer '87 and upgrade to 5.0 from Nantacket rep when another
> economical climate was established. I was very proud and it never
> crossed my mind that we needed a copy for every programmer in the
> group.
>
> I do not know where ehab resides but it is possible that buying a legal
> copy from Brian is simply not an option for him.
>
> I received a lot of help first in Compuserve's NANFORUM and then here.
> If in turn I can help others I try to. Very often you just need to
> point a fellow Clipper-head in the right direction or provide a quick
> hint and they do the rest.
>
> With Ehab/Happy it is not even clear how to help him, since I could not
> ascertain his programming level. That's why I asked the question. If
> Clipper is not his first programming experience ever then we might give
> him references to similar constructs and/or approaches in the
> language(s) he does know.
>
Damn, Eugene, if what you suggest about Happy is even remotely possible, I
feel like shit! Sometimes, we just don't know how well we have it and
deride people who want what we have but don't have the ability to get it.
For me, learning clipper opened doors for me and fed me and I owe more than
a little back to clipper and those who taught me.
I am guilty of holding Happy up to ridicule. If Eugene's scenario is close
then I apologize to Happy.
Regardless, thanks Eugene for reminding us that the playing field is not
always level the world over.
Of course if Eugene's scenario isn't close then Happy is a rat! {smile}
Mike
| |
| Ant?nio 2005-03-08, 8:55 am |
| "E. Fridman" <pm771.am@gmail.com> wrote in message
> Klas,
>
> <<< If we help him out with all those questions we indirectly support
> his use of
> stolen software. >>>
[snip]
> I do not know where ehab resides but it is possible that buying a legal
> copy from Brian is simply not an option for him.
[snip]
I must desagree. A pirated copy will allways be a pirated copy. (N.B.
I'm not saying that someone is using an ilegal copy of clipper).
Back when I bought Clipper, it costed me a little more than 2 month's
salary. Anyone out there thinks it was easy for me ?
And these days, there is no excuse to be using copied software. Anyone
who cannot afford clipper but has an internet conenction can go for
xharbour, for exemple.
Just my humble opinion.
António Vila-Chã
Viana do Castelo
Portugal
| |
| E. Fridman 2005-03-08, 8:55 pm |
| Happy,
Sorry for the somewhat off-topic question.
Since you obviously not very familiar with Clipper, what computer
language(s) are you fluent in? Knowing this might get us a reference
point in answering your questions.
| |
| Klas Engwall 2005-03-09, 3:55 am |
| Eugene,
>I do not know where ehab resides but it is possible that buying a legal
>copy from Brian is simply not an option for him.
FWIW, here are a few other ehab-quotes:
"How can I get Ca-object (clipper under windows freely)?" (May 8,
2004)
"Please if any body can send to me clipper 5.3 UNDER WINDOWS ,that
would be very kind from him." (January 17, 2005)
Then after Rob Grattan told him to contact Grafx he replied:
"Do you work for them. Is money that I am imfull. Do you know with
money I can cross over their serial numbers and get a $9 their
original. OK" (Whatever that means)
Klas
-------
klas dot engwall at engwall dot com
http://www.engwall.com/clipper/
The LFN Library for Clipper
The LanMan Library for Clipper
The NFPAT1A Timeslice release patch for the Nanforum Toolkit
| |
| Klas Engwall 2005-03-13, 3:55 pm |
| Eugene,
>I do not know where ehab resides but it is possible that buying a legal
>copy from Brian is simply not an option for him.
FWIW, here are a few other ehab-quotes:
"How can I get Ca-object (clipper under windows freely)?" (May 8,
2004)
"Please if any body can send to me clipper 5.3 UNDER WINDOWS ,that
would be very kind from him." (January 17, 2005)
Then after Rob Grattan told him to contact Grafx he replied:
"Do you work for them. Is money that I am imfull. Do you know with
money I can cross over their serial numbers and get a $9 their
original. OK" (Whatever that means)
Klas
-------
klas dot engwall at engwall dot com
http://www.engwall.com/clipper/
The LFN Library for Clipper
The LanMan Library for Clipper
The NFPAT1A Timeslice release patch for the Nanforum Toolkit
|
|
|
|