Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename cursoradapter name
Message
From
23/12/2019 09:21:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/12/2019 09:25:22
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01672371
Message ID:
01672420
Views:
41
>Good morning,
>How to rename cursoradapter name programmatically. I have in dataenvironment a cursoradapter with the name (amostragens) and I want to change the name to (amostragens2019)
>Thanks in adavance

Tried to do it via aSelObj() but it doesn't give you a reference to DE nor its members. However, this is available in runtime - I remember I wrote this copyDE.prg long ago (18 years ago, to be specific):
n=aselobj(aEdited,1)
cOldForm=getfile("scx","Form","Take it",1,"Form to steal DE from")
do form (cOldForm) name oOldForm noshow
oDE=oOldForm.dataenvironment
cOutFile=putfile("Save as (new name)","","scx")
if n=0
	oNewForm=createobject(cNewFormClass)
	oNewForm.saveas(cOutFile, oDE)
else
	aEdited[1].saveas(cOutFile, oDE)
endif
Can't you rename it in the PEM window? I managed to rename a cursor object, so why not cursoradapter?

back to same old

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

Click here to load this message in the networking platform