Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: in USE the ALIAS clause does not support a procedur
Message
From
25/04/2004 04:11:11
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00897871
Message ID:
00897974
Views:
20
George,

>First, your code has an error in it. You pass a parameter to a procedure without a PARAMETER or LPARAMETER statement.

Fabio has confirmed this, but does not change anything about his observations

>Second, no where in the documentation does it say that the ALIAS accepts a function call. It specifically states a character string.

I don´t see this in the help files. I would expect anyting that returns a valid character string would be allowed here.

>Third, the problem is easily by-passed by calling the function and using the return result as in USE (DBF()) AGAIN IN 0 ALIAS (lcalias).

Well a workarround to the BUG, but it still is a bug.

>Fourth, do not use the "is not optimal" argument. Fewer lines of code does not neccesarily translate into better performance.

Since when is optimal = performance ?? Personally I agree with Fabio in the sence that the fewer lines the better (unless the code get realy unreadable) I don´t want to read through multiple lines if not neccesary, but I realize this is personal prefference. Also when using such commands in data driven designs where you want to use macro´s one line definitely is better than multiple.

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform