Good day Fletcher,
On 2019/04/15 23:56, Fletcher Johnson wrote:
I am curios, is the code below standard X#? If so, how do you anticipate
the VFP code version to work, a converter or modifications so that it can
use standard VFP? And will there be a way to easily update types (i.e. a
search for not typed, week typed, etc.) so that we can then choose to
specify a type?
Yes the code is standard X#. It basically comes in layers, X# core
which is basically c# in XBase syntax, then you can add references to
open up functions/procedures, then lazy var declaration, DBF commands
etc. The VS IDE also have an option to allow you to set your language
syntax e.g. VO/Vulcan/XBase++/Harbour, VFP etc. There is a compiler
switch to force strict type variable declaration, hence all your lazy
declarations will be thrown as errors when this is set.
Also, VFP uses a lot of classes and forms, mostly built on a UI builder.
Will X# be able to convert the VFP classes/forms to code that can then be
rendered using the VS form builder?
I am part of a community project with VFP developers to take all the
.??x repos and covert them to .NET UI designers. We currently already
able to take the .scx and have it open up inside the VS Form designer
with standard X# code behind. The DevTeam's task is to focus on
language features that is not part of other XBase languages, e.g. TEXT
/END TEXT, SCAN/END SCAN etc.
I did notice that you defined dStartas, but didn't use it - not that it
would have any effect on the performance.
Sorry, after I posted I only realized the email got messed up a bit, the
dStartas should actually read dStart AS .... The same post was also done
on Foxite, you can see the correct code in this message:
https://www.foxite.com/archives/x-to-type-or-not-to-type-0000465183.htm
This is not meant to be judgmental, I think what you are doing is great, I
am just curious.
I do not think of your message as judgemental. I see a person
investigating a future for his existing codebase with minimal changes.
That is the promise and goal of X#.
Hope that answers (most) of your questions. Feel free to ask if there
are more.
XBase greetings from the X# community,
Johan
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.