By the way Chris, which is the proper way to pipe my plugins? I use this method:
1. Create the class in a separate file eg: MyCustomToolPad.prg
2. Create a class that inherits from Plugin
2.1 Create an atribute of type MyCustomToolPad eg: oCustomToolPad
2.2 Create an instance of MyCustomToolPad ...
Search found 110 matches
- Tue Sep 10, 2024 10:16 am
- Forum: XSharp Tools Library
- Topic: EntityViewer Plugin
- Replies: 4
- Views: 10121
- Tue Sep 10, 2024 6:29 am
- Forum: XSharp Tools Library
- Topic: EntityViewer Plugin
- Replies: 4
- Views: 10121
Re: EntityViewer Plugin
Thanks Chris, it worked!
- Mon Sep 09, 2024 9:08 pm
- Forum: XSharp Tools Library
- Topic: EntityViewer Plugin
- Replies: 4
- Views: 10121
EntityViewer Plugin
Hi Chris,
I'm trying to build an Entity Viewer Plugin but I can't detect when a file is opened in order to update my plugin internal entity listbox and refresh the Pad. Here's what I got so far...
USING Xide.PluginSystem
USING System.Drawing
USING System.Windows.Forms
CLASS EntityViewerPad ...
I'm trying to build an Entity Viewer Plugin but I can't detect when a file is opened in order to update my plugin internal entity listbox and refresh the Pad. Here's what I got so far...
USING Xide.PluginSystem
USING System.Drawing
USING System.Windows.Forms
CLASS EntityViewerPad ...
- Sat Sep 07, 2024 6:50 pm
- Forum: Product
- Topic: String literal with special symbols inside
- Replies: 5
- Views: 2876
Re: String literal with special symbols inside
Hi Chris,
In my case, the content inside TEXT/ENDTEXT should be treated as a literal string because I'm not specifying the TEXTMERGE command to parse what it is between angle brackets <<...>>
For example:
TEXT TO lcString
<<hello>>
END TEXT
?lcString // this prints out <<hello>>
VAR hello ...
In my case, the content inside TEXT/ENDTEXT should be treated as a literal string because I'm not specifying the TEXTMERGE command to parse what it is between angle brackets <<...>>
For example:
TEXT TO lcString
<<hello>>
END TEXT
?lcString // this prints out <<hello>>
VAR hello ...
- Sat Sep 07, 2024 7:59 am
- Forum: Product
- Topic: String literal with special symbols inside
- Replies: 5
- Views: 2876
String literal with special symbols inside
Hi there,
I'm getting the error XS9002: Parser: unexpected input '{' in this line of code:
VAR lcMacro := "IMPLEMENT_OLECREATE(<<class>>, <<external_name>>,
0x{0:X8}, 0x{1:X4}, 0x{2:X4}, 0x{3:X2}, 0x{4:X2}, 0x{5:X2}, 0x{6:X2}, 0x{7:X2}, 0x{8:X2}, 0x{9:X2}, 0x{10:X2});"
Note that is a literal ...
I'm getting the error XS9002: Parser: unexpected input '{' in this line of code:
VAR lcMacro := "IMPLEMENT_OLECREATE(<<class>>, <<external_name>>,
0x{0:X8}, 0x{1:X4}, 0x{2:X4}, 0x{3:X2}, 0x{4:X2}, 0x{5:X2}, 0x{6:X2}, 0x{7:X2}, 0x{8:X2}, 0x{9:X2}, 0x{10:X2});"
Note that is a literal ...
- Fri Sep 06, 2024 4:05 pm
- Forum: Product
- Topic: Session proposals for the X# Summit
- Replies: 20
- Views: 11549
Re: Session proposals for the X# Summit
Hi Chris,
This is my custom list:
1. SDK projects, Multi Targeting and Creating Nuget packages
2. Using X# to the max (including the Plugin system)
3. Using XIDE to the max:
4. X# Notebooks
5. VFP Migration
6. Using your own Cloud database
7. PowerShell as the X# developers best friend
8 ...
This is my custom list:
1. SDK projects, Multi Targeting and Creating Nuget packages
2. Using X# to the max (including the Plugin system)
3. Using XIDE to the max:
4. X# Notebooks
5. VFP Migration
6. Using your own Cloud database
7. PowerShell as the X# developers best friend
8 ...
- Mon Jul 22, 2024 9:05 am
- Forum: Visual FoxPro
- Topic: SqlExec() is alive!!!!
- Replies: 4
- Views: 4389
Re: SqlExec() is alive!!!!
易文翰
Can you give an example of the query that you are using?
Robert
Hi @Robert, sure.
LOCAL lnHandle := SQLSTRINGCONNECT("Driver={SQL Server};Server=the_server;Database=the_db;Uid=sa;Pwd=secret;") AS LONG
IF lnHandle > 0
TRY
VAR lnResult := SQLEXEC(lnHandle, "SELECT top 10 * FROM ...
- Sun Jul 21, 2024 10:27 am
- Forum: Visual FoxPro
- Topic: SqlExec() is alive!!!!
- Replies: 4
- Views: 4389
Re: SqlExec() is alive!!!!
1. I'm using 2.20.0.3 and SQLEXEC() always returns -1 even when the query is ok. @robert Is that a bug?
2. SQLEXEC() just works with the old SQL Server driver, I'm testing it against the following drivers:
1. SQL Server -> Works
2. SQL Server Native Client 10.0 -> Does not work
3. SQL Server ...
2. SQLEXEC() just works with the old SQL Server driver, I'm testing it against the following drivers:
1. SQL Server -> Works
2. SQL Server Native Client 10.0 -> Does not work
3. SQL Server ...
- Thu Jul 11, 2024 7:15 am
- Forum: Visual FoxPro
- Topic: TEXT TO varName NOSHOW TEXTMERGE
- Replies: 3
- Views: 2222
Re: TEXT TO varName NOSHOW TEXTMERGE
Thanks @robert,
I've created the issue.
I've created the issue.
- Wed Jul 10, 2024 7:45 pm
- Forum: Visual FoxPro
- Topic: TEXT TO varName NOSHOW TEXTMERGE
- Replies: 3
- Views: 2222
TEXT TO varName NOSHOW TEXTMERGE
Hi,
Why TEXT/ENDTEXT with TEXTMERGE doesn't evaluate PARAMETERS variables?
Eg:
METHOD SomeMethod(tcFileName1 AS STRING, tcFileName2 AS STRING) AS VOID
LOCAL lcOutput := "" AS STRING
TEXT TO lcOutput NOSHOW TEXTMERGE
COPY FILE "<<tcFileName1>>" TO "<<tcFileName2>>"
ENDTEXT
END METHOD ...
Why TEXT/ENDTEXT with TEXTMERGE doesn't evaluate PARAMETERS variables?
Eg:
METHOD SomeMethod(tcFileName1 AS STRING, tcFileName2 AS STRING) AS VOID
LOCAL lcOutput := "" AS STRING
TEXT TO lcOutput NOSHOW TEXTMERGE
COPY FILE "<<tcFileName1>>" TO "<<tcFileName2>>"
ENDTEXT
END METHOD ...

