Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing shapes
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01043393
Message ID:
01043516
Views:
11
>Hugo,
>
>Good point about scan. I haven't paid attention to this detail.
>
>I also think it could be a good idea to create some predefined names instead of random names. That's why I'm saving last added shape number and create a new one using shpN name. This way you can access it later in the code if needed.
>


Whenever I do this things, I name my objects sequentially, as you said, and I also use the "shp" convention, similar to yours, then my shapes, or any other object, would be

shp000000001
shp000000002
shp000000003

cbo000000001
cbo000000002
cbo000000003

line000000001
line000000002
line000000003 etc

Oh, and I never use AddObject but NewObject in this cases.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform