Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename cursoradapter name
Message
De
23/12/2019 09:21:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/12/2019 09:25:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01672371
Message ID:
01672420
Vues:
42
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform