Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace alias name with cursorsource
Message
 
 
To
24/06/2005 02:02:10
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026169
Message ID:
01026269
Views:
15
Tariq,

Why don't you just set the Alias property of the cursor in the DE to start with?

If you are using code to open the tables then put an AS clause in your USE command.

>Is it possible to Replace all Alias names with their relevant CursorSources in DataEnvironment, For example
>
>I have Alias _621 and its CursorSource is 0621 && this is example of one alias
>I want to replace alias name as
>
>replace alias name with alltrim("c")+alltrim(str(cursorsource)) && in case if cursource name is numeric
>replace alias name with alltrim("c")+alltrim(cursorsource) && in case if cursource name is character
>and loop through all alias in dataenvironment of form
>
>After applying command the alias name will be c0621
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform