It does indeed work. Although I agree with @Stefan that the complication is bad..
FUNCTION MyFunc RETURNS INTEGER ():
MESSAGE 111
VIEW-AS ALERT-BOX.
RETURN 10.
END FUNCTION.
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = myfunc () TO 1 BY -1:
END.
In reality assigning the NUM-ENTRIES () to a variable probably makes very little difference, but Tom is correct, that one probably should.
I'll leave the religious wars on keyword casing to others. As well as the variable naming conventions. I write my code based upon the conventions of the...
I was a bit busy earlier, but I have had time to write a more efficient solution for the Sports DB as an example:
DEFINE VARIABLE cCountries AS CHARACTER NO-UNDO INITIAL "USA,Finland,France".
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DEFINE VARIABLE cCurrentCountry AS...
Both options will almost certainly result in a whole index read of the Order table. Functions in query predicates are typically hard to resolve and so you end up with poor performance.
You could use an OPEN QUERY or a Dynamic Query to solve the problem more efficiently.
You will have to create a constants library yourself. In your version the best way will be an include file I guess. In a modern version you could encapsulate them in an object.
Not being able to post the link is a bit annoying, yes. I've liked your post and if you get enough likes it should allow you to post them in future.
I presume you clicked a link on one of the external resources feed posts? Those link out to the Progress Community pages. No harm having your...
Are you who I think you are? Nice to "see" you if so. :)
Could you post the exact error you're getting in ODBC please? Sometimes the errors here can be useful in pinpointing the issue.
Did you set up a broker to accept SQL connections? The recommendation is to add a secondary broker for SQL...
You can't. Not with a standard alert box. You could code a custom .net MessageForm with your desired dimensions - we use those because you can expand them to include a lot of information that an Alert Box doesn't.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.