Search found 24 matches

by Eric Selje
Wed Mar 24, 2021 6:21 pm
Forum: Visual FoxPro
Topic: Implementing missing VFP functions
Replies: 36
Views: 6951

Implementing missing VFP functions

<r>It looks like in VFP the first parameter needs to be explicitly in binary to allow all three parameters like you have, so I tweaked your code a little bit.<br/> <CODE><s>[code]</s>LOCAL bTest AS varbinary, n bTest = 0h110101001000 ? BitSet( bTest, 0 , 3 ) && 3407 ? BitSet( bTest, 0 , 2 ) && 3403 ...
by Eric Selje
Wed Mar 17, 2021 6:54 pm
Forum: Visual FoxPro
Topic: Implementing missing VFP functions
Replies: 36
Views: 6951

Implementing missing VFP functions

I'm trying to think if there's a tool that VFP devs can run on their codebase that counts up function call into a nice report. Anybody know of such a thing. A profiler of sorts.
by Eric Selje
Fri Feb 05, 2021 6:14 pm
Forum: Visual FoxPro
Topic: X# STRCONV() implementation proposal
Replies: 4
Views: 2190

X# STRCONV() implementation proposal

<t>I think this is very cool. I'm trying to figure out a way to create tests so that rather than compare against an "expected value" it would compare against what VFP returned so we could ensure they're the same. If we compiled this into a .NET Class we could call that from DotNetBridge in VFP and ...
by Eric Selje
Sat Dec 12, 2020 2:50 am
Forum: Visual FoxPro
Topic: Input needed on FoxPro local support
Replies: 15
Views: 3751

Input needed on FoxPro local support

Nor should they ever.

TYPE("MyVar = 10") is a character string and should never assign any value to any variable.
TYPE(MyVar = 10) might return a boolean if MyVar is numeric, otherwise it will throw a type error.
by Eric Selje
Wed Dec 02, 2020 11:51 pm
Forum: Visual FoxPro
Topic: Can't open DBF table
Replies: 19
Views: 3498

Can't open DBF table

I've never had or seen a table that needed a N(3,2) field, and I would never think to rely on this "bug" in production.

Eric
by Eric Selje
Tue Nov 24, 2020 6:33 pm
Forum: Visual FoxPro
Topic: Input needed on FoxPro local support
Replies: 15
Views: 3751

Input needed on FoxPro local support

<t>It's important to note that the PRIVATE keyword in FoxPro does not actually denote the variable's scope at all. What it actually is doing is saying "If I have any variables in scope with this name at this point, shield it from getting changed while this function is running because I'm about to ...
by Eric Selje
Fri Oct 16, 2020 7:17 pm
Forum: Visual FoxPro
Topic: VFP Exporter
Replies: 5
Views: 2505

VFP Exporter

That looks really promising, doesn't it!?
by Eric Selje
Thu Oct 08, 2020 3:51 pm
Forum: Visual FoxPro
Topic: Debugging data environment
Replies: 2
Views: 1932

Debugging data environment

Exactly what I needed - thanks!
by Eric Selje
Wed Oct 07, 2020 9:09 pm
Forum: Visual FoxPro
Topic: Debugging data environment
Replies: 2
Views: 1932

Debugging data environment

What would I put down in the watch window if I wanted to know about the current data environment, like DBF(), RECNO(), field values, etc.?
by Eric Selje
Thu Oct 01, 2020 3:38 pm
Forum: Product
Topic: Mixing C# and X#
Replies: 19
Views: 3346

Mixing C# and X#

<t>Ah - I think I see now what I was doing wrong. I was trying to stick C# code into a project that I had created using the X# WPF Application Template. I need to create a new project from the C# WPF Application Template so I get the correct compiler settings. <br/> <br/> Thanks for talking me ...