This took two days to track down, so I figured it deserved posting for posterity.
We came upon a situation where the simple solution to our problem was to add an _Access method to an object-type property which would go dynamically retrieve the requested object for us.
In another segment of...
We're investigating the possibility of using Sql Server 2017's AlwaysEncrypted functionality in our VFP 9 based application.
Enabling this involves swapping out the connection string form Driver={Sql Server} for something newer which supports Always Encrypted, like Sql Server Native Client 11.0...
Hmm, perhaps your keyboard layout is different from mine, because for me a backtick-space combination results in CHR(0) every time.
Either way, the ON KEY LABEL is a good idea. I'm a bit reluctant to try and handle it in our framework editbox level because we have several with instance-level...
We've recently run into a scenario where a user had accidentally hit the backtick character while doing data entry in an editbox (VFP9). In this case they actually typed the sequence ` (backtick - space), which result in a NUL char '\0' being inserted.
This edit box is bound to a remote view...
This seems to just be a bug. (VFP9 SP2) Can anyone confirm that this is strange behavior and that I'm not crazy, or is this something that can be explained away somehow?
This may be related to the thread 626553
I laid out all 3 permutation that are worth investigating in the Case comments in...
Thanks Olaf,
I agree with you that they mustn't be written there by accident, but also find it interesting that they will not be present unless some font has been changed for that class definition; Others are simply blank.
This actually came up as part of some research into 2-way VFPSource <->...
In a VCX a class definition is terminated by Platform = WINDOWS, UniqueId = RESERVED row.
If this is the class definition of a form (for example), updating the Font in the IDE will cause the closing COMMENT row to include Font data in the property field. From experimentation this appears to be...
Olaf/DanFreeman: Thanks guys, perhaps that's actually the best solution. I'm afraid this is just one of those things that I couldn't quite do in a nice way so it's probably not worth hacking together.
The only other thing I could think of would be to have a settings object with all of the user...
Hi All,
Olaf: Of course the code outside does not use it, but the next script which I run inside the wrapper might. This is exactly why I'm trying to hide these when they're produced. There are common parameter variable names like glUpdate or gcFile which I am interested in removing just to be...
Hi Olaf,
Thanks for the post. I had forgotten that PRIVATE can hide PUBLIC variables.
I'm actually not getting the desired behavior. You're code works correctly only when the public variable declared has a name which matches the public variable in the outside scope. Notice that gcTest2...
Oops, there's a bug in that for all globals....
Here we go:
CLEAR MEMORY
CLEAR
*
* Example data
*
PUBLIC goVal, gcVal
gcVal = "Public Variable"
goVal = CREATEOBJECT("Empty")
pcVal = ["Private Variable"]
poVal = CREATEOBJECT("Empty")
LOCAL lcVal as String
LOCAL loVal as Object
LOCAL ARRAY...
Thanks Mike,
I was trying to avoid the step where we write to disk, but that's okay. I thought maybe you had some kind of slick trick to list them I missed. I've always wanted something like AMEMORY() or AVARIABLES() to just get a list... Oh well.
I wasn't aware of the LIST OBJECT command at...
I'm looking for a way to list or capture the declared variables programmatically, along with their values.
MikeLewis refers to an error handler written entirely in FoxPro which sounds like it does exactly this in this thread: thread184-1687712.
Here is the motivation: We have a wrapper which...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.