Re: JPG file in a VCX

2013-05-30 Thread Alan Bourke
Yes, you can't embed them. Unless you wanted to get really clever and serialise the JPEG data, store it in a Tag field and then de-serialise it, save it to a temp file and point the graphic control on the form at it before the form shows. ___ Post

Re: JPG file in a VCX

2013-05-30 Thread Thierry Nivelet
you could do this: At design time _cliptext = JustFname(yourImageFile) + '|' + Strconv(FileToStr(yourImageFile),13) encodes image contents into base64 IF Len(_cliptext) = 8.192 paste into yourProperty in property window PROCEDURE yourProperty_access in your class.vcx LOCAL

Re: JPG file in a VCX

2013-05-30 Thread Alan Bourke
Or indeed just build an app or EXE in which case it'll be embedded in that. ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list:

Re: JPG file in a VCX

2013-05-30 Thread Christof Wollenhaupt
Is this for an image control? If so, you can write a small program that takes the file and converts it to a series of CHR(xx)+... code lines. Then assign the resulting string to the PictureVal property. This won't work if you need the image as an icon for the class in the project manager. --

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Ted Roche
On Wed, May 29, 2013 at 8:27 PM, Ken Dibble krdib...@stny.rr.com wrote: Oh, everything I do is prone to error. :) It's just that with every rep the error rate drops... a little. I'm usually really careful the first few times. Once I get to the hundred time, I tend to get sloppy. So, it's a

Re: [NF] Google Calendar API

2013-05-30 Thread Jeff Johnson
Sytze: I modified the Python example calendar class and created an exe. In VFP, I create what might be called a parameter file. When I run the exe using the run command it reads the parameter file, does the work, then it writes the results in a response file which I read in VFP to complete

Re: JPG file in a VCX

2013-05-30 Thread GaryT
On 30/05/13 19:19, Christof Wollenhaupt wrote: Is this for an image control? If so, you can write a small program that takes the file and converts it to a series of CHR(xx)+... code lines. Several years ago I wrote a program to do just that, it reads any file (low level) and creates a PRG

Return value from form in class

2013-05-30 Thread Kent Belan
Hello, I am trying to build a form in a class. Everything is working ok, but now I want to return a value from the form. How do I get the return value passed back to the calling form ? Here is my code: oForm = createobject(testform) oForm.show(1) lcReturnMsg = oForm.cReturnMsg The problem is

Re: Return value from form in class

2013-05-30 Thread Ken Dibble
I am trying to build a form in a class. Everything is working ok, but now I want to return a value from the form. How do I get the return value passed back to the calling form ? Here is my code: oForm = createobject(testform) oForm.show(1) lcReturnMsg = oForm.cReturnMsg The problem is the

RE: Return value from form in class

2013-05-30 Thread Richard Kaye
One way to do it would be to declare your lcReturnMsg variable as private before creating your form object and then directly set that variable in the unload of the form. Another way would be to pass a reference to the calling form object (implied in your question but not shown) to your called

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Ken Dibble
If I can automate it, I can avoid whole classes of mistakes. Of course, it lets me make the other classes of mistakes faster and affect more files :) And that's why the whole world loves computers s much! :) Of course, not everything the Project Manager does is hook-able; it does

RE: Return value from form in class

2013-05-30 Thread Dave Crozier
Kent, As Ken has said, set up the return variable in the Unload() of the form either that or you can actually do return return_variable in the Unload. Personally I never pass back discrete variable but pass in/out a parameter object populated with various properties that I may need to use,

RE: Return value from form in class

2013-05-30 Thread Richard Kaye
The latter being what Ken illustrated, of course. -- rk -Original Message- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Richard Kaye Sent: Thursday, May 30, 2013 10:28 AM To: profoxt...@leafe.com Subject: RE: Return value from form in class One way to do it would

RE: Return value from form in class

2013-05-30 Thread Kent Belan
Hello Ken, Thanks very much for the quick reply. I had no idea I could pass parameters like that. Probably should have looked in the help ... Thanks also to Richard and Dave. This is the best resource anywhere ... thanks Ed !! -Original Message- From: ProFox

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Ken Kixmoeller (ProFox)
On Thu, May 30, 2013 at 9:31 AM, Ken Dibble krdib...@stny.rr.com wrote: I'm a big fan of YAGNI: http://c2.com/cgi/wiki?YouArentGonnaNeedIthttp://c2.com/cgi/wiki?**YouArentGonnaNeedIt http://c2.**com/cgi/wiki?**YouArentGonnaNeedIthttp://c2.com/cgi/wiki?YouArentGonnaNeedIt

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Ken Dibble
Correcting the link, which email encoding (or something) seems to have munged: http://c2.com/cgi/wiki?YouArentGonnaNeedIt Interesting. I wonder how many times I have done this? Which? Implemented something prematurely, or followed YAGNI? Ken Dibble www.stic-cil.org

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Ken Kixmoeller (ProFox)
On Thu, May 30, 2013 at 10:00 AM, Ken Dibble krdib...@stny.rr.com wrote: http://c2.com/cgi/wiki?**YouArentGonnaNeedIthttp://c2.com/cgi/wiki?YouArentGonnaNeedIt Interesting. I wonder how many times I have done this? Which? Implemented something prematurely, or followed YAGNI? Implemented

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Ken Dibble
http://c2.com/cgi/wiki?YouArentGonnaNeedIt Interesting. I wonder how many times I have done this? Which? Implemented something prematurely, or followed YAGNI? Implemented something prematurely. I just sounds like something I would have done, but I can't remember a specific instance. I

Re: [NF] Google Calendar API - Solved!

2013-05-30 Thread Jeff Johnson
Looking through all of the documentation and looking at code I found out that there is - in fact - an entry id that does not change. The etag is a version id used for versioning the entry. If I add an entry in my app and then change it on my phone, the etag will change but the entry id will

RE: [NF] Google Calendar API - Solved!

2013-05-30 Thread John Harvey
Okay, now that you've done the bleeding, how about freeing up the code! Lol John -Original Message- From: ProFox [mailto:profox-bou n...@leafe.com] On Behalf Of Jeff Johnson Sent: Thursday, May 30, 2013 10:09 AM To: profox@leafe.com Subject: Re: [NF] Google Calendar API - Solved!

Re: [NF] Google Calendar API - Solved!

2013-05-30 Thread Ed Leafe
On May 30, 2013, at 11:09 AM, Jeff Johnson j...@san-dc.com wrote: Looking through all of the documentation and looking at code I found out that there is - in fact - an entry id that does not change. The etag is a version id used for versioning the entry. If I add an entry in my app and

Re: [NF] Google Calendar API - Solved!

2013-05-30 Thread Jeff Johnson
I will be glad to. It will take me a bit to make it useable outside of my application. I might even include a record layout for a calendar event. That's a well kept secret. ;^) (actually it's not a secret but does take some figuring out. Records are objects that contain fields and

RE: [NF] Google Calendar API - Solved!

2013-05-30 Thread John Harvey
Thanks! John -Original Message- From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Jeff Johnson Sent: Thursday, May 30, 2013 11:24 AM To: profox@leafe.com Subject: Re: [NF] Google Calendar API - Solved! I will be glad to. It will take me a bit to make it useable outside of my

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Gene Wirchenko
At 17:28 2013-05-29, Ken Dibble krdib...@stny.rr.com wrote: Thanks to all who replied. It helps a great deal to be able to come here to find out if I've missed something in my thinking. Quite. I get good ideas from reading. I am in the process of revamping the UI error checking in

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Gene Wirchenko
At 04:19 2013-05-30, Ted Roche tedro...@gmail.com wrote: [snip] I'm usually really careful the first few times. Once I get to the hundred time, I tend to get sloppy. So, it's a tradeoff. If I can automate it, I can avoid whole classes of mistakes. Of course, it lets me make the other classes

Re: Return value from form in class

2013-05-30 Thread MB Software Solutions, LLC
On 5/30/2013 10:03 AM, Kent Belan wrote: Hello, I am trying to build a form in a class. Everything is working ok, but now I want to return a value from the form. How do I get the return value passed back to the calling form ? Here is my code: oForm = createobject(testform) oForm.show(1)

RE: JPG file in a VCX

2013-05-30 Thread Jack Skelley
Good Afternoon All: Thanks for all the good ideas in the many responses. Since I developed this application in VFP 6 not all the arguments in the strconv are available. There are no base64 options. So I found some great code in http://fox.wikis.com/wc.dll?Wiki~VfpBase64 that I used to convert

Re: [NF] Google Calendar API - Solved!

2013-05-30 Thread Sytze de Boer
Glowing hearts attached herewith if you release your code! On Fri, May 31, 2013 at 5:24 AM, Jeff Johnson j...@san-dc.com wrote: I will be glad to. It will take me a bit to make it useable outside of my application. I might even include a record layout for a calendar event. That's a well

Re: JPG file in a VCX

2013-05-30 Thread Mike Copeland
Just a WAG, but what if you copied and renamed the VCX file to filename.dbf and then try opening the dbf copy? After you're through with it, you could just delete the dbf...or keep it around if it amuses you. Mike Copeland Original Message Subject: Re: JPG file in a VCX

RE: JPG file in a VCX

2013-05-30 Thread Jack Skelley
Mike: I tried that with the same results. I even tried and SQL select of record 1 to get the memo field and its response was the file was in use. I never saw that before using SQL... How do you close a classlib? Jack From: ProfoxTech

Re: JPG file in a VCX

2013-05-30 Thread Alan Bourke
On Thu, May 30, 2013, at 09:38 PM, Jack Skelley wrote: How do you close a classlib? RELEASE CLASSLIB ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list:

RE: JPG file in a VCX

2013-05-30 Thread Jack Skelley
Alan: When I issue that the response is the classib does not exist... Jack Jack Skelley Senior Director, Programming/Computer Operations New Jersey Devils (973)757-6164 jskel...@newjerseydevils.com From: ProfoxTech [profoxtech-boun...@leafe.com] on behalf

RE: JPG file in a VCX

2013-05-30 Thread Tracy Pearson
Jack, You said you opened the classlib as a table. Did you: USE IN SELECT(classlib) Tracy Pearson PowerChurch Software ___ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version

Ideas on how to proceed to get unique set of rows (no keys)

2013-05-30 Thread MB Software Solutions, LLC
Coworker has several CSV files that get fed into Access and she wants to produce an output in Excel that will only have unique rows, with no duplicates. I was thinking the best way to do this would be a CHECKSUM for the row but not entirely sure. I know when I import in MySQL, it has an

RE: Ideas on how to proceed to get unique set of rows (no keys)

2013-05-30 Thread Tracy Pearson
MB Software Solutions, LLC wrote on 2013-05-30: Coworker has several CSV files that get fed into Access and she wants to produce an output in Excel that will only have unique rows, with no duplicates. I was thinking the best way to do this would be a CHECKSUM for the row but not entirely

Re: Ideas on how to proceed to get unique set of rows (no keys)

2013-05-30 Thread M Jarvis
On Thu, May 30, 2013 at 2:30 PM, MB Software Solutions, LLC mbsoftwaresoluti...@mbsoftwaresolutions.com wrote: Coworker has several CSV files that get fed into Access and she wants to produce an output in Excel that will only have unique rows, with no duplicates. I was playing with this in

Crashed programs remaining resident

2013-05-30 Thread Michael Madigan
About once a month someone's program crashes while it has a locked record.   Sometimes the program remains in memory and doesn't fully clear the record and/or file lock.  It always happens to one individual who always has two instances of the program open AND Excel AND word.  It seems like she

Re: Ideas on how to proceed to get unique set of rows (no keys)

2013-05-30 Thread MB Software Solutions, LLC
On 5/30/2013 5:51 PM, Tracy Pearson wrote: MB Software Solutions, LLC wrote on 2013-05-30: Coworker has several CSV files that get fed into Access and she wants to produce an output in Excel that will only have unique rows, with no duplicates. I was thinking the best way to do this would

Re: Ideas on how to proceed to get unique set of rows (no keys)

2013-05-30 Thread MB Software Solutions, LLC
On 5/30/2013 5:56 PM, M Jarvis wrote: I was playing with this in Excell 2010 and if you highlight the rows, then select Filter, Advnaced, highlight the rows (again), Unique... seemed to work in my little test w/ 5 records... Filter in place, Save As to her CSV I guess Excel Automation

Re: [NF] Google Calendar API - Solved!

2013-05-30 Thread MB Software Solutions, LLC
On 5/30/2013 1:53 PM, John Harvey wrote: Thanks! John +2!!! -- Mike Babcock, MCP MB Software Solutions, LLC President, Chief Software Architect http://mbsoftwaresolutions.com http://fabmate.com http://twitter.com/mbabcock16 ___ Post Messages to:

Re: Crashed programs remaining resident

2013-05-30 Thread Paul Hill
On 30 May 2013 22:58, Michael Madigan mmadi10...@yahoo.com wrote: My suggestion is to put use a newer computer with her, but that hasn't happened. Some chance! I had a query last week if my app will run on XP machines with 256Mb of ram. Yeah probably, but what other junk have you got

Re: Crashed programs remaining resident

2013-05-30 Thread Ken Dibble
My suggestion is to put use a newer computer with her, but that hasn't happened. Some chance! I had a query last week if my app will run on XP machines with 256Mb of ram. Yeah probably, but what other junk have you got installed on that 10+ year old PC? My 3 year old phone has more ram.

RE: JPG file in a VCX

2013-05-30 Thread Jack Skelley
Tracy No I did use that! I will try it in the AM. Thanks! Jack Skelley Jack Skelley Senior Director, Programming/Computer Operations New Jersey Devils (973)757-6164 jskel...@newjerseydevils.com From: ProfoxTech [profoxtech-boun...@leafe.com] on behalf of

Re: Crashed programs remaining resident

2013-05-30 Thread Tracy Pearson
Michael Madigan mmadi10...@yahoo.com wrote: About once a month someone's program crashes while it has a locked record.  Sometimes the program remains in memory and doesn't fully clear the record and/or file lock.  It always happens to one individual who always has two instances of the program

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Paul McNett
On 5/30/13 9:00 AM, Ken Kixmoeller (ProFox) wrote: I think to myself: I *know* that they are going to need this, so I might as well... Some things, it just makes sense to plan ahead. Like when the customer says we'll never ever need more than one t-post in an opening, so just hard-code this

Re: Design Question: Abstract Classes, Yes or No?

2013-05-30 Thread Ken Dibble
And because they specifically asked for only one, I code the ui to only allow one. Then when a couple years do pass and they ask the question, I say I'm so good I can have this for you in a jiffy all because I was thinking ahead for them. Yes. After getting burned on believing users on such