Search found 116 matches

by kevclark64
Wed Oct 01, 2025 2:11 pm
Forum: Visual FoxPro
Topic: Chances for some small optimizations of vfp runtime?
Replies: 8
Views: 31456

Re: Chances for some small optimizations of vfp runtime?

Thomas, I agree with you that much work needs to be done on the back end for real VFP compatibility. But all those things will need a lot of testing and iterating, and if there isn't a project converter then there won't be a base of people doing the testing. If there were a working project converter ...
by kevclark64
Thu Aug 28, 2025 8:53 pm
Forum: Visual FoxPro
Topic: Chances for some small optimizations of vfp runtime?
Replies: 8
Views: 31456

Re: Chances for some small optimizations of vfp runtime?

As far as I am aware, the project converter for VFP to X# is not completed. That would have to be done before a company could contemplate a migration from VFP to X#. If that were available and could get you 90% of the way toward a working X# project then there might be interest in the FoxPro ...
by kevclark64
Wed Jan 29, 2025 2:30 pm
Forum: Visual FoxPro
Topic: Remove empty lines from XML file
Replies: 6
Views: 10308

Re: Remove empty lines from XML file

It's extremely easy to create an XML file from a table in Visual Foxpro:

adapter = CREATEOBJECT("XMLAdapter")
USE mytable
adapter.AddTableSchema("mytable")
adapter.ToXML("xmloutput.xml",,.t.)

That copies all the data from a table to an XML file. If you want to do something different from that ...
by kevclark64
Tue Jan 28, 2025 5:41 pm
Forum: Visual FoxPro
Topic: Remove empty lines from XML file
Replies: 6
Views: 10308

Re: Remove empty lines from XML file

I've never used SET ALTERNATE although I've used SET PRINTER TO and SET PRINT ON which is functionally pretty much the same thing. I don't know exactly what you're trying to do, but it sounds like using TEXT ... ENDTEXT (probably with TEXTMERGE) would give you finer control of the output. Using that ...
by kevclark64
Fri Jan 24, 2025 4:40 pm
Forum: Visual FoxPro
Topic: Is it possible to add the “Thisform” keyword to the foxpro dialect of X#?
Replies: 10
Views: 12306

Re: Is it possible to add the “Thisform” keyword to the foxpro dialect of X#?

For myself, I make substantial use of THISFORM but I have never used THISFORMSET. Doing a little research, it appears that Microsoft maintained THISFORMSET in Visual Foxpro mainly for backward compatibility. I found an article Foxite which explains how to use THISFORMSET: https://www.foxite.com ...
by kevclark64
Mon Jan 20, 2025 3:34 pm
Forum: Visual FoxPro
Topic: Is it possible to add the “Thisform” keyword to the foxpro dialect of X#?
Replies: 10
Views: 12306

Re: Is it possible to add the “Thisform” keyword to the foxpro dialect of X#?

I second this. "Thisform" is extremely handy when you are using custom classes and you want to reference a property or method of the form on which the class is located. As you say, you can do the parent.parent.parent route but that becomes very complex, especially when a class could be used on ...
by kevclark64
Wed Jun 07, 2023 12:48 pm
Forum: Visual FoxPro
Topic: Copy to array
Replies: 3
Views: 3978

Copy to array

<r>I have to apologize because I made a mistake here. I'm not sure what I was doing when I got the results I reported, but the FoxPro help is clear that the array isn't truncated: <B><s>[b]</s>Each successive row in the array is filled with the contents of the next record in the table. If the array ...
by kevclark64
Mon May 22, 2023 4:34 pm
Forum: Visual FoxPro
Topic: Copy to array
Replies: 3
Views: 3978

Copy to array

<t>I mentioned some issues with Copy to Array a while back, which have been fixed, but I don't think I ever mentioned this. When you use Copy to Array with Foxpro, the length of the array will be truncated to the number of the items copied. With XSharp, the original length of the array remains ...
by kevclark64
Mon Apr 10, 2023 8:45 pm
Forum: Product
Topic: "Transform" function
Replies: 6
Views: 2413

"Transform" function

I tried the "@S8" with Transform in FoxPro and it didn't seem to work. LEN(Transform(Space(100), "@S8")) returns 100 in FoxPro. It would be a handy feature though.
by kevclark64
Thu Aug 25, 2022 12:57 pm
Forum: Visual FoxPro
Topic: How to view the value of a PRIVATE variable in debugger?
Replies: 5
Views: 5049

How to view the value of a PRIVATE variable in debugger?

I tried both the popup window and MemVarGet and both ways work well. Thanks Robert and Chris.