xsharp.eu • XSI
Page 1 of 1

XSI

Posted: Fri May 24, 2024 2:04 pm
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

Re: XSI

Posted: Fri May 24, 2024 2:59 pm
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

Re: XSI

Posted: Fri May 24, 2024 3:39 pm
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

Re: XSI

Posted: Fri May 24, 2024 4:14 pm
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

Re: XSI

Posted: Sat Jun 01, 2024 12:45 am
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/

Re: XSI

Posted: Sat Jun 01, 2024 8:35 am
by robert
Joe,
You can also work with that toolkit with X#.

Robert