Giter VIP home page Giter VIP logo

Comments (8)

RobertvanderHulst avatar RobertvanderHulst commented on July 21, 2024

I will add that asap.
Is there also a StrToFile() for the reverse operation ?
Robert

from xsharppublic.

mattslay avatar mattslay commented on July 21, 2024

Is there also a StrToFile() for the reverse operation ?

Yes... With some parameters also...

Robert - you can find a complete list of all VFP functions here:
https://docs.microsoft.com/en-us/previous-versions/visualstudio/foxpro/f2x2b62b(v%3dvs.71)

In particular, the StrToFile() function is well documented on that site at this url:

https://docs.microsoft.com/en-us/previous-versions/visualstudio/foxpro/ak1w859c%28v%3dvs.71%29

STRTOFILE(cExpression, cFileName [, lAdditive | nFlag])

from xsharppublic.

RobertvanderHulst avatar RobertvanderHulst commented on July 21, 2024

I will add both functions to the FoxPro runtime. I will start with this runtime (as well as the dialect support in the compiler) after the next release.

from xsharppublic.

mattslay avatar mattslay commented on July 21, 2024

Robert, once you begin this VFP runtime, will I be able to pull your incremental commits to it from this public repo? Hoping I can test them locally, even before the future release(s) come out.

Once something is alive in this area of this public repo, I am hoping I could learn how to implement any missing functions, then I can fork the repo, add mode in my fork, then submit pull requests. Isn't that how open-source is supposed to work?

from xsharppublic.

RobertvanderHulst avatar RobertvanderHulst commented on July 21, 2024

Matt,
Yes you are right, that how it is supposed to work.
However so far we have only lurkers that download changes but no pull requests yet.

from xsharppublic.

JohanNel avatar JohanNel commented on July 21, 2024

Hi Robert,
Browsing some articles on CodeMag, I came upon the "FileToStr" as was written by a VFP developer Markus Egger. I know it don't have all the overlays but at least it gives an idea of the internals of VFP.
protected virtual void StrToFile(string sExpression, string sFileName)
{
FileStream oFs = new FileStream(sFileName, FileMode.CreateNew,FileAccess.ReadWrite);
StreamWriter oWriter = new StreamWriter(oFs);
oWriter.Write(sExpression);
oWriter.Flush();
oWriter.Close();
oFs.Close();
}
}

from xsharppublic.

mattslay avatar mattslay commented on July 21, 2024

Remember, pretty much every VFP function was already written for .Net years ago, with exactly the same implementation that VFP uses. I think I've already shared that before...

Some people have already done all the work for us in C#. Find it here:

https://github.com/mattslay/Visual-FoxPro-Toolkit-for-.NET

from xsharppublic.

RobertvanderHulst avatar RobertvanderHulst commented on July 21, 2024

We have adopted the code contributed by Antonio and Karl-Heinz.

from xsharppublic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.