Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Just an Observation 1

Status
Not open for further replies.

Steve Meyerson

Programmer
Sep 17, 2020
320
US
Hi, Contributors (& Lurkers),

When I google a problem I'm having, I usually find lots of suggestions not solving the problem with extraneous information in writing or video, made by people obviously trying to show off. Haven't we all?

I find tons of misinformation on Windows, politics, car repairs and probably just about anything.

My point here is I find this forum a refreshing reprieve from that. I appreciate and learn from the contributions, although I can't always understand them, but I trust posters like Mike Lewis' explanations to be simple and accurate.

So let's avoid flame wars (however small), ok?

Steve

 
Steve,

I fully agree. I like the way we communicate here and I know from other forums that it can be quite different too. I come here nearly daily for news and updates.

I only visit 2 other forums nearly daily: foxite.com an diyaudio.com. Both with a similar helpful and understanding commitment.

Regards, Gerrit
 
Hi Steve!!! I must agree, all answers given here are true and really solved and gave answers to every queries especially Mike Lewis, Mark, Chris, Nigel, Griff and others... They always help solve the problem... actually i am now almost at finish of my application because of all the people in this forum.. Im so thankful that i am a member.... God bless everyone...
 
MikeY

Everyone here tries their best to help. If you have a better solution it is, of course, welcome and appreciated but the management here will remove any ad-hominem attacks.

Chriss (and Olaf before him) makes an extraordinary contribution here (has helped me personally many a time and, if he's not self-employed, i just hope his boss never sees how much effort he puts in here) and you may find a to & fro on the specific technical issue beneficial to everyone. At worst you may have to politely agree to disagree.

I too have been programming for over 40 years (a mere 25 in foxpro) but learn something new here everyday.

n
 
Steve,

Thank you for your kind words. You singled me out by name, but of course the praise must go to all the regulars here who are tireless in their help. Nigel mentioned Olaf/Chriss, who has gone beyond the call of duty so often over the years. I won't try to mention any other names for fear that I wil forget some, which is not my intention. But we all know who they are.

Tek-Tips is now the only technical forum that I visit regularly. There have been others over the years (and I go all the way back to Compuserve days), but they have mostly fallen way.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Nigel (and others),,

I too can add around 40 years of programming and I too add to my relatively limited knowledge each day. In fact sometimes I have to wonder if it took me those 40 years to gain my 6 months of knowledge. [bigears]

Steve
 
I didn't just find out about mdot.

B-(

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
I am glad to see also in this Thread confirmed what I today wrote Mike Yearwoodin Thread:

Import or Append what else could work for a big comma-delimited file to be transferred into *.dbf ?

Klaus



Peace worldwide - it starts here...
 
No, I was asking so Mike would elucidate for everyone, I have been using mdot for decades - check my earliest FAQ...

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Can we please go back to limiting this forum to technical discussion and helping each other (specifically my issue with grouping listviews )

No one is being paid per accepted answer; no one i hope has their sense of self-worth tied up with 'winning' discussions here. Many of us will have had teenage children so should be used to having sage advice ignored. We also have to bear in mind that as well as many contributors not having english as a first language there are many cultural differences that may make some appear overly deferential and others overly assertive; and famously 'tone' can appear quite different to that intended.

Let it go.

n

 
Mike Y. said:
RETURN from inside a WITH...ENDWITH is a further example of a thing we must avoid because it can crash

With all due R E S P E C T to your knowledge, I have never heard that before. Is the same true if one uses THISFORM to preface the properties instead of the WITH..ENDWITH construct? Just curious.

Steve
 
Steve said:
Is the same true if one uses THISFORM to preface the properties instead of the WITH..ENDWITH construct? Just curious.

No. Exiting any kind of loop or construct with RETURN is considered bad programming practice in some circles. Or even placing a RETURN in the body of a function or procedure. (And this is not just a VFP thing.) But it is perfectly legal and will not in itself cause a crash (in VFP).

But exiting a WITH ... ENDWITH construct with a RETURN does cause problems, including C5 errors. I think this is quite a well-known issue, although I don't recall seeing it officially documented anywhere. Using THISFORM (or any other object reference) in place of WITH ... ENDWITH is not a problem.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
I did not know about the WITH..ENDWITH issue, but that is probably because I do not normally use it B-)

I am a bit retentive about functions only having one exit (return) though, and I try to write DO WHILE.. ENDDO loops where the condition
includes a control to allow a 'proper' exit, same with FOR... NEXT loops

In fact, I don't even use ENDFUNC for the most part, because with just one RETURN the function is over when it's called and the next lines in
any prg file are going to be starting a new function or procedure.

I seem to remember some variation of dBase had a rule that any call to a function had to be tested or assigned to something, so you would end up
with - would that have been Clipper?

Code:
m.void = MyFunction(m.Param1, m.Paramm2)


Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Griff, no I don't think that was Clipper. As far as I remember, Clipper allowed you to call a function without picking up its returned value, just as in VFP. I don't think it applied in dBASE either, although given the current state of my mental faculties, I could be wrong in both cases.

Of course, another place where you must not use RETURN to exit a construct is in TRY / CATCH /ENDTRY.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Mike L said:
another place where you must not use RETURN to exit a construct is in TRY / CATCH /ENDTRY.

Mike, I learned about the RETURN inside TRY..ENDTRY by bad experience. I've been using RETURN inside WITH..ENDWITH for years and never had a problem with it (that I know of). I'll reconsider.

BTW Thanks Chris(s).[bigsmile]
Steve
 
Mike, do you think it might have been Foxbase or FoxPro? It has to be between the late eighties and early nineties

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Griff, this is really taxing my memory.

As far as I remember, Foxbase (and early versions of dBASE) didn't have user-defined functions. You could create a procedure, which could only be executed with DO. And there were built-in functions, like LEFT() and VAL(), but they always returned a value. So the idea of calling them without using the returned value never arose.

I hope someone will correct me if I am wrong about this.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Sorry, shouldn't be taxing you so early in the week, probably turn out to be Delphi!

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
 
Hello,

just on with endwith

I never use a return within with endwith
And i rarely use with endwith because I am too lazy to remember propertys and object names and let intellisense do it which seems not to work if you use with endwith.

And found in my "if anything fails folder" : (in this folder there is also something about HP printer drivers, yes its an old folder :) )

Regards
tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top