Search results

  1. tamhas

    Substitute Function Consumes More Time

    Allow me to be skeptical. If your usage is something related to a file, as your sample code suggests, than doing *anything* to a file is going to consume so much time that the time required to compute the file name is going to be irrelevant. The same is true if you do anything to the DB.
  2. tamhas

    Substitute Function Consumes More Time

    And, your question is? Substitute() is a lot more powerful and general purpose, having special functionality like nice handling of unknown values and facilitating translation to multiple languages. + is very simple. You are surprised that the complex one takes longer to do an equivalent...
  3. tamhas

    Unique Index On Nullable Column?

    _Field._Mandatory will tell you whether the field is define as having no nulls, but I don't know that this is an absolute guarantee that there are no nulls in the data. I expect to find some oddities in the DB. I think you can count on absolutely, especially in an application as vintage as QAD.
  4. tamhas

    Unique Index On Nullable Column?

    Are you familiar with the ABL unknown value? (There are actually several, but that doesn't matter here.) If the field in question is the only one in the index, e.g., something like shipping document, then the entire table can consist of records with the unknown value. If there are multiple...
  5. tamhas

    Unique Index On Nullable Column?

    If an index component of a unique index is unknown value, then there can be any number of records that match. I don't believe that there is any way to FIND them individually without ROWIDs, but you can certainly FOR EACH through them. You can change the unknown value to a known value at any...
  6. tamhas

    Unique Index On Nullable Column?

    Null is not considered to break the uniqueness. I can understand why that may not be intuitive, but it has always been that way.
  7. tamhas

    Openedge Procedure editor in Unix

    The other possibility would be that the protermcaps are different.
  8. tamhas

    Question Deadlock

    Right, one of the principles of good ABL programming is to figure out what needs changing without opening a database transaction and then to open, apply, and close in the shortest possible time. If you do that, then the problem goes away.
  9. tamhas

    Share-lock No-lock Exclusive-lock

    Note also that your examples 1 and 2 do not show any scoping. Any update should be done in a strongly scoped block.
  10. tamhas

    Question Euro Sign - Which Code Page

    For future reference, stick this URL in your reference file for code page issues. Internationalization (I18n), Localization (L10n), Standards, and Amusements
  11. tamhas

    Lock Table Overflow, Increase -l On Server (915)

    If this is just a display, there is no reason for any locks, so all of your reads should be no-lock.
  12. tamhas

    Include Files - Named Parameters

    As discussed on Progress Communities, the issue here is trying to mix positional and named parameters. Once you use a named parameter, positional parameters cannot be used.
  13. tamhas

    Smtpmail And Ssl Issues

    Presumably, the obstacle to install is human, not technical ...
  14. tamhas

    Question Extended Ascii Characters

    BTW, you might want to add Internationalization (I18n), Localization (L10n), Standards, and Amusements to your bookmarks for a lot of information on this topic.
  15. tamhas

    Question Extended Ascii Characters

    Depending on the need, you could move to an extended code page like UTF-8 that is more likely to have a superset of the characters you want, but that is a non-trivial commitment. So, you need to ask yourself why you need any particular character and how important is it to the application. If...
  16. tamhas

    Question Extended Ascii Characters

    The table you are showing is not for 8859-1 ISO/IEC 8859-1 - Wikipedia There is no box in 8859-1.
  17. tamhas

    Question How To Handle "no More Resources."

    Plus -n has only a passing relationship to licensing ...
  18. tamhas

    Question For Each Where Clause Wildcards

    For situations like this, my inclination is to test the values the user has supplied and construct a where clause dynamically based on what I find there. Thus, if the user supplies "*", simply omit that field from the where clause altogether. Not only does this allow making much more efficient...
  19. tamhas

    Error Not Commited To Db

    Done the COMPILE LISTING yet? You can also do it for the program that calls this one to see if there is a transaction active at the time of the call. Other than that, I agree with the other advice you have been given. Sometimes, people think they need huge transactions out of some notion that...
  20. tamhas

    Avoid Non Printing Characters

    Replace() is a much faster way.
Back
Top