Re: call a function in a program

2007-02-20 Thread Andy Davies
Andy Davies wrote: ... what about e.g. : oLib = NEWOBJECT('utils','temp.prg') =oLib.newfunction('hi', myNum) ... or something like that g That's only if he's defined utils as a CLASS. yes, it was just a 'suggestion' s Andrew Davies  MBCS CITP   - AndyD    8-)#

Re: [NF] Specs for developer workstation in 2007

2007-02-20 Thread Andy Davies
look for the biggest discount you can get on a top-end non-Vista box (with luck there should be some fire sales coming up). Andrew Davies  MBCS CITP   - AndyD    8-)# ** This email and any files transmitted with it are

Re: [NF] Specs for developer workstation in 2007

2007-02-20 Thread Andy Davies
Chet said I buy the 3 year extended warantee -- good thing since my last machine is crapping out on me after 2 years -- Here in the UK I would *never* buy extended warranty on *anything* - it's a rip off! And if I had a pc crap out after 2 years I'd return it as 'unfit for purpose' under the sale

FW: Clearing the Word Clipboard

2007-02-20 Thread Tristan Leask
Siestse, There are no controls in your first option and the second option doesn't work either. This is Word 2003. By some accounts Micro$oft took out the support for your second option in the release of 2003. Regards Robert -Original Message- From: [EMAIL PROTECTED]

RE: Clearing the Word Clipboard

2007-02-20 Thread Tristan Leask
Hi Guys, Thanks for the posts. Ed... I had to post this from one of my colleges as he cannot post to the list. I think it's because he is not subscribed as we have only 1 subscription and this puts the mail into a public folder on our exchange server. His email address is [EMAIL PROTECTED]

RE: [NF] Specs for developer workstation in 2007

2007-02-20 Thread John Weller
That's because the components are all made in China g John Weller 01380 723235 07976 393631 The good luck is that (I suspect) m$ must be subsidizing the hell out of the vendors 'cause prices are at an ALL TIME LOW right now. ___ Post Messages

VFP 6 Grid: Hide empty dates?

2007-02-20 Thread baker . aa
Hello, I have a grid in VFP 6 and the controlsource for one of the columns is a date field. If the date is empty it shows / /. Is there a way to hide the slashes when there is no date? Thanks. Regards, Andrew Baker Project Administration Resource Planning Gillette GBU, Blades Razors

RE: [NF] Limewire

2007-02-20 Thread David Crooks
On Monday, February 19, 2007 11:41 PM john harvey wrote: Mainly - you infect your computer with spyware, adware, viruses, etc. and you can also steal some music too! A coworker brought a thumb drive with some music from Limewire and infected 3 servers with a virus. She should be lucky to have

RE: [NF] Limewire

2007-02-20 Thread Stephen the Cook
MB Software Solutions wrote: Anyone use limewire.com? I've got it on the kids junk PC, but have been reluctant to put it on my dev laptop as I don't like the security risk. Just wondered if others had comments on it, especially with regards to exposing your system? It's all in what you

Re: Clearing the Word Clipboard

2007-02-20 Thread Ed Leafe
On Feb 20, 2007, at 4:34 AM, Tristan Leask wrote: Ed... I had to post this from one of my colleges as he cannot post to the list. I think it's because he is not subscribed as we have only 1 subscription and this puts the mail into a public folder on our exchange server. His email

RE: Clearing the Word Clipboard

2007-02-20 Thread Sietse Wijnker
Hi Robert, I ran and tested the code on word 2000. In office 2007 there's a toolbar named 'Clipboard' with indeed 0 controls, but there's also a toolbar named Office Clipboard. Maybe that does what you're aiming for in office 2003+? Regards, Sietse Wijnker. -Original Message- From:

NF: SQL Server 2005

2007-02-20 Thread Roderick Pagdanganan
Hello Folks, I finally got my upgrade for Visual Studio 2005 and what I want to know is if I should install SQL Server 2005 Developer Edition. I previously installed SQL Server 2005 Express and created some databases for some VFP projects. Will installing the Developer Edition create havoc with

Re: VFP 6 Grid: Hide empty dates?

2007-02-20 Thread Larry Bradley
Sure. If the grid column is to be read-only, you can use an expression as the control source: iif(empty(my_date),'',my_date) At 06:35 AM 2/20/2007 -0500, you wrote: Hello, I have a grid in VFP 6 and the controlsource for one of the columns is a date field. If the date is empty it shows /

[OT] Handy Guide to Troop Morale

2007-02-20 Thread Ed Leafe
Not sure if what you say or do is going to hurt the feelings of our very sensitive men and women in combat? Worry no more - this guide from the White House explains it all. http://www.villagevoice.com/news/0708,sutton,75844,9.html -- Ed Leafe -- http://leafe.com --

RE: Clearing the Word Clipboard

2007-02-20 Thread Tristan Leask
Thanks Ed :-) Tristan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe Posted At: 20 February 2007 13:05 Posted To: Profox Archive Conversation: Clearing the Word Clipboard Subject: Re: Clearing the Word Clipboard Done. -- Ed Leafe --

Re: VFP 6 Grid: Hide empty dates?

2007-02-20 Thread baker . aa
Hi Larry, D'oh! Thanks for the tip. Although that did not work at first - gave me a variable MY_DATE is not found error. I suspect that is because at the time I set the controlsource the table does not exist. I moved the controlsource setting to after the table is created and all is well. Now

Re: [NF] Limewire

2007-02-20 Thread Kenneth Kixmoeller/fh
On Feb 19, 2007, at 10:40 PM, john harvey wrote: Mainly - you infect your computer with spyware, adware, viruses, etc. and you can also steal some music too! I must be so naive. Thanks for the explanations. ___ Post Messages to:

Re: VFP 6 Grid: Hide empty dates?

2007-02-20 Thread Larry Bradley
I've never had to worry about that, since I rarely use grids as input elements, and if I do (for dates), I use a date picker, so I never actually enter a date in a grid. However, I think you could handle it in the REFRESH method of the column by doing the same thing. At 09:01 AM 2/20/2007

Re: VFP tip: thisform.Lockscreen

2007-02-20 Thread Derek Kalweit
LockScreen speeds native VFP updates* --*- set THISFORM.LockScreen True before updating or refreshing the form, then LockScreen False when all changes are completed. FoxPro repaints the screen once instead of many times, actually speeding up the application. This also provides a psychological

Re: VFP tip: thisform.Lockscreen

2007-02-20 Thread MB Software Solutions
Derek Kalweit wrote: And if your LockScreen=.F. commands are causing flashy updates(particularly image controls with alpha channels), here's a work-around for that too. Create a Lockscreen_assign method, and use this code: LPARAMETERS tlNewLockScreen IF tlNewLockScreen Then

RE: Algorithms

2007-02-20 Thread Hal Kaplan
= Subject: Algorithms =  =  Great resource: http://www.nist.gov/dads/index.html =  =  Brings back memories of Computer Science classes of long ago... =  = -- Ed Leafe = Holy oxymoronia, Batman! You should not be able to remember things from long ago. If you can, they were not so long

Re: VFP tip: thisform.Lockscreen

2007-02-20 Thread Derek Kalweit
Note that the API function needs to be defined ahead of time: DECLARE INTEGER LockWindowUpdate IN user32 INTEGER hWndLock Cool! What's your preference of where you'd declare that? I declared it in load event of the one form I had to implement this in, as init wasn't soon enough. It might

Tracing (somebody else's) program flow tricks

2007-02-20 Thread Whil Hentzen (Pro*)
How many of you have inherited someone else's system? It can provide extra work for the person on the other end of the suicide-prevention hotline... or it can be kinda fun. One of the first things I do is instrument each method and function, so I can trace program flow in the debugger. This is

RE: Tracing (somebody else's) program flow tricks

2007-02-20 Thread David Crooks
On Tuesday, February 20, 2007 11:54 AM Whil Hentzen wrote: snipped One of the first things I do is instrument each method and function, so I can trace program flow in the debugger. This is handy both to see what is called, and when, as well as (occasionally) to determine where slowdowns are

Re: [NF] Specs for developer workstation in 2007

2007-02-20 Thread William Sanders / EFG
Heya Malcolm - 1. system box - Shuttle XPC SN41G2 V2. if you go with a V3, please note the sound system is substandard but you get SATA drive interface, so change out item 4 from ATA to SATA 2. 2 gig o ram 3. qty 2, 22 inch lcd screens, Viewsonic VG2230WM or equivalent - see

Re: [NF] Damn M$ automatic update---didn't respect my wishes!

2007-02-20 Thread Dave Thayer
On 2/17/07, MB Software Solutions [EMAIL PROTECTED] wrote: Last night, I left my VFP development window open, and a few other windows, iirc. I know earlier that day I had the yellow shield icon telling me that there were 10 critical updates to apply, but I kept putting it off, not applying

cursoradapters revisited

2007-02-20 Thread Andy Davies
Hi all, well I'm back working with my ca based n-tier app and I'm having trouble understanding the ca's cursor methods: autoopentables is set to true in my de but nodata is set in each ca so I start with 'empty' cursors at various points in the code I determine the pk I want for each ca and

Re: cursoradapters revisited

2007-02-20 Thread MB Software Solutions
Andy Davies wrote: Hi all, well I'm back working with my ca based n-tier app and I'm having trouble understanding the ca's cursor methods: autoopentables is set to true in my de but nodata is set in each ca so I start with 'empty' cursors at various points in the code I determine the pk I

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Ted Roche
On 2/20/07, Whil Hentzen (Pro*) [EMAIL PROTECTED] wrote: How many of you have inherited someone else's system? That's what I do for a living. It can provide extra work for the person on the other end of the suicide-prevention hotline... or it can be kinda fun. Or you can gather around the

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread MB Software Solutions
David Crooks wrote: One challenge I have had at this job is when I do a build is to make sure I have all of the programs. Previous developers like to share the programs but if you are not pathed correctly the project manager gets lost and I have dig through the hard drive trying to find the

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Whil Hentzen (Pro*)
One of the first things I do is instrument each method and function, so I can trace program flow in the debugger. This is handy both to see what is called, and when, as well as (occasionally) to determine where slowdowns are occurring. Can you expand on what you mean about 'instrument each

Disabling a key

2007-02-20 Thread John J. Mihaljevic
Hi all, I want to prevent a certain key (in this case, DNARROW) from being used by my users in a certain column of a grid. I was going to set up a simple procedure called DONOTHING.PRG that contained only RETURN .T. and put ON KEY LABEL DNARROW DO DONOTHING.PRG in the WHEN method and ON KEY

RE: Tracing (somebody else's) program flow tricks

2007-02-20 Thread David Crooks
On Tuesday, February 20, 2007 2:14 PM Whil Hentzen wrote: Can you expand on what you mean about 'instrument each method and function' to trace the program flow? At the top of each method/function, put a line like debugo customer.init() is executing debugo lib.encrypt() is executing

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread MB Software Solutions
Whil Hentzen (Pro*) wrote: How many of you have inherited someone else's system? It can provide extra work for the person on the other end of the suicide-prevention hotline... or it can be kinda fun. One of the first things I do is instrument each method and function, so I can trace

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread MB Software Solutions
Whil Hentzen (Pro*) wrote: At the top of each method/function, put a line like debugo customer.init() is executing debugo lib.encrypt() is executing That sort of thing. I used to do this, as it lessened my chance of typos or got around my cut/paste fits: g ASSERT llAssert

Re: [NF] Specs for developer workstation in 2007

2007-02-20 Thread Derek Kalweit
I'd love to put my own machine together as it'd be a neat experience (and not hell, I hope!) but my worry is something said long ago: Dell, Gateway, and the big dogs know what parts work well together due to all of their RD work in best configuration, and little ol' me doesn't know these

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Whil Hentzen (Pro*)
Run it through the code counter I talked about in the Software Maintenance session years ago. That often red-flags issues right there. Audit the code: using forms derived from DevGuide, we pick out a percentage of forms, classes, menus, programs and determine the level of code and obfuscation

Re: Disabling a key

2007-02-20 Thread Jack Skelley
John: Intercept the key closure in the KeyPressed Event of the grid column object. Regards, Jack Skelley John J. Mihaljevic wrote: Hi all, I want to prevent a certain key (in this case, DNARROW) from being used by my users in a certain column of a grid. I was going to set up a simple

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Whil Hentzen (Pro*)
it turned out to be an iceberg nightmare. My first clue that there was more underneath the surface of the water was the error method having an asterisk in it (or perhaps it was ON ERROR *). After screwing around I love the apps where they have just ONE function hidden like so m.lcResult

Re: [NF] Specs for developer workstation in 2007

2007-02-20 Thread Derek Kalweit
I now use NewEgg most of the time. I like to build my own dev machines because I like to pick the top-of-the-line components. Same here(2x). Asus motherboards are bulletproof. (my current system has been running since early 2003 without ANY problems whatsoever) Eh. I wouldn't say

Report page setup for continuous pin printer

2007-02-20 Thread MB Software Solutions
(VFP9) If I've got a custom length (say 4 5/8) for a continuous feed form to be used in a dedicated pin printer, I can just set my detail band to be 4.625 and print as normal, right? I'm hoping it's really that simple. As it turns out, a client wants us to image a simple address label on

Re: [NF] Specs for developer workstation in 2007

2007-02-20 Thread Derek Kalweit
3. qty 2, 22 inch lcd screens, Viewsonic VG2230WM or equivalent - see I second that. I just bought one of this model screen and have a 17 Sony as my secondary, and I really love this Viewsonic wide screen. The wide screen aspect is very nice in VFP, as you can have your property sheet docked to

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Kenneth Kixmoeller/fh
On Feb 20, 2007, at 1:44 PM, Whil Hentzen (Pro*) wrote: In the end, the customer just wanted a miracle. You have had some customers that didn't!?!?!?!? *That* would be a miracle. (Cue the a miracle happens here cartoon.) Ken ___ Post Messages

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Whil Hentzen (Pro*)
MB Software Solutions wrote: Whil Hentzen (Pro*) wrote: At the top of each method/function, put a line like debugo customer.init() is executing debugo lib.encrypt() is executing That sort of thing. I used to do this, as it lessened my chance of typos or got around my

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread MB Software Solutions
Whil Hentzen (Pro*) wrote: snipped In the end, the customer just wanted a miracle. Many of them are out there...they want Jesus Christ but only want to pay for Deacon Jimand part-time at that. g Fortunately, with a couple of projects I'm working on now, the code is pretty good -

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread MB Software Solutions
Whil Hentzen (Pro*) wrote: Ummm, I guess I wasn't clear. I want to see customer.init() customer.SetCreditLimit() customer.ProcessNewOrder() customer.DisplayOrders() in debugo (along with parms, if I want) and I'm not sure that assert is going to do that the way I want. s Aaaah, I

Re: Report page setup for continuous pin printer

2007-02-20 Thread Richard Kaye
You need to create a custom form of that height as you will otherwise get a form feed every 11 inches. Which means you start to get in to all other kinds of fun depending on the OS. 98 stores custom forms in one place and NT/2000/XP in another. MB Software Solutions wrote: (VFP9) If I've

Re: Report page setup for continuous pin printer

2007-02-20 Thread MB Software Solutions
Richard Kaye wrote: You need to create a custom form of that height as you will otherwise get a form feed every 11 inches. Which means you start to get in to all other kinds of fun depending on the OS. 98 stores custom forms in one place and NT/2000/XP in another. So it does need to be

Re: Report page setup for continuous pin printer

2007-02-20 Thread Richard Kaye
AFAIK. A royal PITA. MB Software Solutions wrote: Richard Kaye wrote: You need to create a custom form of that height as you will otherwise get a form feed every 11 inches. Which means you start to get in to all other kinds of fun depending on the OS. 98 stores custom forms in one

RE: [NF] Damn M$ automatic update---didn't respect my wishes!

2007-02-20 Thread David Smith
Use group policy to turn off Windows Update... Startrungpedit.mscAdministrative Templateswindows Update -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Thayer Sent: Tuesday, February 20, 2007 12:23 PM To: [EMAIL PROTECTED] Subject: Re: [NF] Damn M$

best way to read and write text files on a linux server from vfp

2007-02-20 Thread Jeff Roberts
I need to read and write some plain text configuration files on a linux server on a regular basis. I'd like some degree of security too. I was thinking of using scp but I havent found an easy solution for vfp that utilizes scp. I also thought of using samba to just share the folder containing

Re: best way to read and write text files on a linux server from vfp

2007-02-20 Thread Ed Leafe
On Feb 20, 2007, at 10:30 AM, Jeff Roberts wrote: I need to read and write some plain text configuration files on a linux server on a regular basis. I'd like some degree of security too. I was thinking of using scp but I havent found an easy solution for vfp that utilizes scp. I also

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Eugene Vital
MB Software Solutions wrote: Whil Hentzen (Pro*) wrote: Ummm, I guess I wasn't clear. I want to see customer.init() customer.SetCreditLimit() customer.ProcessNewOrder() customer.DisplayOrders() in debugo (along with parms, if I want) and I'm not sure that assert is going to do that

Re: best way to read and write text files on a linux server from vfp

2007-02-20 Thread Ted Roche
On 2/20/07, Jeff Roberts [EMAIL PROTECTED] wrote: I'd like some degree of security too. What is it that you're looking for? You can limit a Samba share to a specific user and (I think) IP address, and give Linux permissions to that user to only a few files or directories. Is there more you

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Whil Hentzen (Pro*)
Aaaah, I see/understand you now. I'm blonde--it's take time sometimes. ;-) I must confess that I've rarely if ever taken advantage of the DEBUGOUT command. Cool function...just never really used it. I can see how it'd be better than ASSERTS and/or WAIT WINDOWs though! It's not

Re: best way to read and write text files on a linux server from vfp

2007-02-20 Thread MB Software Solutions
Ed Leafe wrote: What I do is create a Samba share on the Linux box, and then create symlinks to the files in that share. You still need to make sure that you have permission to edit the files, but at least you're not exposing anything but that shared folder. So if I wanted to

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Ed Leafe
On Feb 20, 2007, at 8:10 PM, Whil Hentzen (Pro*) wrote: debugo is one of the top ten improvements to the language since they added that third work area. s Funny, when I tell Fox Folk that I do most of my debugging in Python by adding 'print' statements in critical places, they look

Re: Report page setup for continuous pin printer

2007-02-20 Thread MB Software Solutions
Oh great. (Not.) Richard Kaye wrote: AFAIK. A royal PITA. MB Software Solutions wrote: Richard Kaye wrote: You need to create a custom form of that height as you will otherwise get a form feed every 11 inches. Which means you start to get in to all other kinds of fun

Re: best way to read and write text files on a linux server from vfp

2007-02-20 Thread Ed Leafe
On Feb 20, 2007, at 8:42 PM, MB Software Solutions wrote: So if I wanted to use a Linux server as the common LAN database repository, that's what I'd do for VFP files if in fact I was using DBFs? I'd probably put the DBFs directly in the share. I only mentioned symlinks because

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread MB Software Solutions
Ed Leafe wrote: Funny, when I tell Fox Folk that I do most of my debugging in Python by adding 'print' statements in critical places, they look at me as though I was advocating going back to punched cards. Glad to hear that someone else appreciates this technique! So.you

[OT] All that unpleasantness!

2007-02-20 Thread Ed Leafe
Military amputee uninvited from Bush event because the press would see him with no legs http://americablog.blogspot.com/2007/02/military-amputee-uninvited- from-bush.html What a jerk this guy is. He shouldn't have to force people to look at the results of the Iraq war. It

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Ed Leafe
On Feb 20, 2007, at 8:52 PM, MB Software Solutions wrote: So.you use 'print' and just direct it to a certain window...your own debugout kind of window? If not, the first thought of many would be that it's the same as doing a ? or ?? (and who wants that? g). 'print' outputs to

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread MB Software Solutions
Ed Leafe wrote: 'print' outputs to sys.stdout, which defaults to the terminal window that launched the session. You can certainly re-direct it to just about anything, including another window, a file-like object, etc. I recall something like that about C++. Thanks for the

Re: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Whil Hentzen (Pro*)
Ed Leafe wrote: On Feb 20, 2007, at 8:10 PM, Whil Hentzen (Pro*) wrote: debugo is one of the top ten improvements to the language since they added that third work area. s Funny, when I tell Fox Folk that I do most of my debugging in Python by adding 'print' statements in critical

RE: Tracing (somebody else's) program flow tricks

2007-02-20 Thread Stephen the Cook
Ed Leafe wrote: On Feb 20, 2007, at 8:10 PM, Whil Hentzen (Pro*) wrote: debugo is one of the top ten improvements to the language since they added that third work area. s Funny, when I tell Fox Folk that I do most of my debugging in Python by adding 'print' statements in critical

RE: SQL Server 2005

2007-02-20 Thread Stephen the Cook
Roderick Pagdanganan wrote: Hello Folks, I finally got my upgrade for Visual Studio 2005 and what I want to know is if I should install SQL Server 2005 Developer Edition. I previously installed SQL Server 2005 Express and created some databases for some VFP projects. Will installing the

Re: [OT] All that unpleasantness!

2007-02-20 Thread Pete Theisen
On Tuesday 20 February 2007 8:56 pm, Ed Leafe wrote: Military amputee uninvited from Bush event because the press would see him with no legs http://americablog.blogspot.com/2007/02/military-amputee-uninvited- from-bush.html Hi Ed! Getting a Not Found error. Guess he isn't there. --

RE: [OT] All that unpleasantness!

2007-02-20 Thread Adam Buckland
Try : http://tinyurl.com/35lamb It looses the - at the end of the line when it splits. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pete Theisen Sent: 21 February 2007 05:07 To: ProFox Email List Subject: Re: [OT] All that unpleasantness! On