Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get a unique object id
Message
From
23/08/2000 21:58:14
 
 
To
23/08/2000 17:49:31
Fernando España
Alta Tecnologia En Informatica
Guatemala, Guatemala
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00408539
Message ID:
00408589
Views:
15
>1. How can I get a unique object id in a project or in a .exe file.
>
>2. How can I get the a fisical file name from a form included in a project or in a .exe file
>
>I need to get the previous aspects in run time.
>
>Thanks a lot

1) I don't know that objects have unique id's in VFP. I could be wrong (it's been known to happen <g>)
If you want to create a GUID yourself, check out this link for a VFP example of the CoCreateGUID API
http://support.microsoft.com/support/kb/articles/Q269/3/87.ASP
(VB example: http://support.microsoft.com/support/kb/articles/Q176/7/90.ASP)

2) Once a form has been instantiated, you can get the file name of a form using any object on that form and SYS(1271, oObject)

HTH
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform