Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP bug, and how to fix it
Message
From
04/03/2023 08:29:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/03/2023 08:18:08
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01686313
Message ID:
01686325
Views:
48
>I am mostly with Dragan, as _cliptext functionality exceeds normal variables.
>So what is a "system variable" ? Something to read or write to the OS.
>Help says about _cliptext:"Specifies the character expression to store in the Clipboard"
>
>Uncertain if implementing read/write functions would have sidestepped current errors,
>but _cliptext felt like a shortcut with no real reason to me.

Frankly, as with other OS calls, use sparingly. In case of clipboard, I prefer to call it only once, i.e. do everything to a local variable, and then when I'm done with it, copy it to _cliptext.

I've had similar cases with other system calls, like erase file - which is just a wrapper for the filesystem function, which is then executed... a bit later. So in the next step I try to create a new version of that file and bang, file still exists. Or, open a file for something, close it, try to erase - bang, still not closed, I was too fast. Will close a few milliseconds later, when the OS finishes doing other stuff.

So my rule of pinky is to not call OS stuff in a fast loop, but rather when I get out of it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform