XSI

We encourage new members to introduce themselves here. Get to know one another and share your interests.
Post Reply
joec4281
Posts: 3
Joined: Thu May 16, 2019 6:38 pm

XSI

Post by joec4281 »

Name: Joe Caverly
Country: Canada
Province: Ontario
City: London
Products: dBASE II, dBASE III+, dBASE IV 2.0, Clipper 5.3, VisualFoxPro 9

I would like to use X# Interactive with the VFP dialect on my Windows 10 system.

Code: Select all

R:\>xsi
X# Interactive Compiler version 2.18.0.4 (public)
Copyright (C) XSharp BV. All rights reserved.

Type "#help" for more information.
> Console.WriteLine(Date())
(1,19): error XS9007: Feature 'DATE function' is not available in the selected dialect Core
>
In this example, I am attempting to use the FoxPro DATE() function.

I would also like to use other FoxPro functions.

A search of these forums,
and a search of Bing,
returned many hits for XSI,
but I could find no info in regard to my issue.

Where can I find the documentation that explains how to use the VFP dialect with XSI?

Regards and thanks,

Joe Caverly
User avatar
robert
Posts: 4555
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: XSI

Post by robert »

X# interactive is not really meant to work as a FoxPro command prompt, if that's what you're looking for.
It is the X# equivalent of C# interactive, and mostly works in the Core dialect.
What are you trying to achieve?

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
joec4281
Posts: 3
Joined: Thu May 16, 2019 6:38 pm

Re: XSI

Post by joec4281 »

I work from the command line,
using either PowerShell or TakeCommandConsole,
on Windows 10.

Thus,
it would be useful
to work with FoxPro via XSI
from either PowerShell or TakeCommandConsole.

I tried using the dialect option,

Code: Select all

U:\>xsi.exe -dialect:vfp 
X# Interactive Compiler version 2.18.0.4 (public)
Copyright (C) XSharp BV. All rights reserved.

Type "#help" for more information.
error XS9014: The dialect 'FoxPro' requires a reference to the runtime DLLs XSharp.Core.DLL and XSharp.RT.DLL.
but there seems to be a requirement for additional runtime DLLs.

Regards and Thanks,

Joe Caverly
User avatar
robert
Posts: 4555
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: XSI

Post by robert »

Just like you can pass the dialect from the command line, then you can also add these references from the command line:

Code: Select all

xsi -dialect:FoxPro -r:XSharp.Core.dll -r:XSharp.RT.DLL -r:XSharp.VFP.DLL
This assumes you have added these DLLs to the GAC.


Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
joec4281
Posts: 3
Joined: Thu May 16, 2019 6:38 pm

Re: XSI

Post by joec4281 »

Thankyou.

You are correct in saying that X# interactive is not really meant to work as a FoxPro command prompt.

I had remembered using a Visual FoxPro .NET toolkit many years ago,
and after looking through my books,
I came upon ".NET for Visual FoxPro Developers".

It still works with the VB.NET and C# of today,
so I will go that route.

Regards,

Joe

Ref: https://web.archive.org/web/20061128115 ... lopers.htm
Ref: https://web.archive.org/web/20061112120 ... endexC.htm
Ref: https://web.archive.org/web/20020602113 ... /team/vfp/
User avatar
robert
Posts: 4555
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: XSI

Post by robert »

Joe,
You can also work with that toolkit with X#.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply