Comments (8)
I will add that asap.
Is there also a StrToFile() for the reverse operation ?
Robert
from xsharppublic.
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.
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.
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.
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.
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.
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.
We have adopted the code contributed by Antonio and Karl-Heinz.
from xsharppublic.
Related Issues (20)
- Transform() runtime error with PTR argument HOT 2
- String functions with PSZ argument throw runtime error HOT 7
- error MSB4181 when building with "Enable named arguments" HOT 10
- VS : Project setting "enable named arguments" checkbox does not reflect xsproj HOT 2
- INSTANCE field inconsistency with and without SELF HOT 1
- VOXPorter problem with unterminated block comment in textblock
- Problem with OrdKeyVal() and ADS/ADT HOT 1
- Harbour dialect missing commands HOT 2
- Harbour dialect FIELD statement not supported HOT 5
- Duplicate DEFINEs and functions in the runtime, SDK and RP2
- VO incompatibility with longer order names HOT 5
- Out of process Winforms designer in VS2022 17.9.2 is not working HOT 1
- SetColor() function does not allow omitting argument
- Output in Debugger of Action "CALLSTACK" does not show line numbers HOT 5
- Code generator for types in external assemblies does not generate parameters for Indexed properties HOT 1
- Use of reserved word in x#/core HOT 4
- Error 5041: The requested object was not found. Key not found. HOT 29
- Macro compiler problem passing more than 2 arguments by reference HOT 2
- Compatibility problem (?) creating dbf with DBFNTX driver HOT 2
- RP3 Invalid operation exception when printing from the preview window HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xsharppublic.