Hi Wolfgang,
Whatever help you provide and whenever you provide it, it is greatly appreciated.
Regards,
Jeff
Search found 37 matches
- Wed Jun 05, 2024 4:00 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
- Tue Jun 04, 2024 4:45 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Thanks Wolfgang and Chris. Chris, all of the undeclared variables are fields. So, this will cleanup easily. Also, thanks for mentioning the SEEK issue. I could have wasted a lot of time on it. Wolfgang, are you saying that I should change "Class fpimport" as presented in my original code to ...
- Mon Jun 03, 2024 10:02 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Hi Chris, 6 months later and I'm finally getting back to the .DLL. As a reminder, I am trying to build the .DLL with Xide64 2.18.4. I have converted the VFP code where needed to comply with X#. I compile successfully and all of the error messages are XS9073: variable '?????' has not been declared ...
- Fri Dec 22, 2023 10:52 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Hi Robert, I have recoded with your work around and will see how that goes after I get a clean compile. In the meantime, you might want to know that DELETE ALL FOR &lcfieldname = fldvalue produces a compilation error while DELETE ALL FOR (lcfieldname) = fldvalue does not. VFP has a COMPILE command ...
- Fri Dec 22, 2023 1:47 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Hi Robert, The SET ORDER command does not use the &lfieldname syntax. Instead it is simply: SET ORDER TO TAG pmt_cntrct FWIW, I am trying to convert a VFP .DLL that was written years ago and is called by both various C programs and Excel macros to enable access to DBF files. Since VFP was 32bits and ...
- Thu Dec 21, 2023 10:56 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Hi Chris, Thanks for pointing out about XSharp.VFP as missing. I cleaned up the code an it now compiles and runs successfully through XIDE. (I've pasted it below, if anyone cares.) So, I've added the ADD_TABLE_COLUMN function to the .DLL code to try to get that converted for X# and have noticed a ...
- Thu Dec 21, 2023 7:27 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Hi Chris, Thanks for taking the time to help. I've attached the .viaef file, but I had to zip it first for some reason (probably the security system on our side). I've probably got an incorrect switch setting. I'm using the October 2023 XIDE build. Please check the header file for the RENAME To ...
- Thu Dec 21, 2023 5:39 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Hi Robert, I unchecked the nostsddefs checkbox and then added the following #command statements: #command RENAME <(filename1)> TO <(filename2)> => FRENAME(<(filename1)>, <(filename2)>) #command DELETE FILE <(filename)> => System.IO.File.Delete(<(filename)>) to the small .prg, which relates to https ...
- Thu Dec 21, 2023 2:42 pm
- Forum: Product
- Topic: Modify DBF Structure Programmatically
- Replies: 6
- Views: 946
Re: Modify DBF Structure Programmatically
Thanks, Robert. Your logic parallels mine.
Regards,
Jeff
Regards,
Jeff
- Thu Dec 21, 2023 2:40 pm
- Forum: Visual FoxPro
- Topic: Getting Started with X# -- Converting a VFP Application or DLL
- Replies: 32
- Views: 6831
Re: Getting Started with X# -- Converting a VFP Application or DLL
Hi Chris, I suspected the command hadn't been defined yet. However, looking now at the DELETE FILE command in the X# Language Reference, I see the note " This command is defined in a header file and will be preprocessed by the X# preprocessor to a function call. If you disable the standard header ...