Search results

  1. K

    Check if char string is integer

    ..... Drat.
  2. K

    Check if char string is integer

    Using cibulkas method, how about the unreadable: FUNCTION isInteger RETURNS LOGICAL( cInteger AS CHARACTER) : DEF VAR lTest AS LOGICAL NO-UNDO. ASSIGN lTest = (cInteger NE ?) AND (STRING(INTEGER(cInteger)) EQ TRIM(cInteger)) NO-ERROR. RETURN lTest. END FUNCTION...
  3. K

    Check if char string is integer

    That is why I rather weaselly included 'arguably' in my post, but I suspect a user entering ' 90' in an input field would be suprised if it was rejected as a number. Though some difficult types might argue that ? is a valid member of the Progress integer set.:read: Not me though. Well...
  4. K

    Check if char string is integer

    But MESSAGE myinteger('-') VIEW-AS ALERT-BOX INFO BUTTONS OK...
  5. K

    Check if char string is integer

    Nice, but you arguably need a trim. MESSAGE isinteger(' 90') VIEW-AS ALERT-BOX INFO BUTTONS OK. And what about MESSAGE isinteger(?) VIEW-AS ALERT-BOX INFO BUTTONS OK.
  6. K

    Does Money Make You Happy?

    They are right. Money doesn't make you happy. It gives you more options, which is good, but how many options do you need, and how much of your life do you want to devote to chasing them? How much money is enough? Financially, there is a point below which life is uncomfortable and a slog...
  7. K

    Uk

    (Sorry, not on internet at weekend) Yep - will pm you later.
  8. K

    Can you use an ini file for a specific Protool?

    If you mean you want to associate a standard 'MyProtool.ini' file with your Protool, and deploy that with the Protool to be used after the main application has loaded (and override the default MainApp.ini), then I believe you can use the LOAD and USE statements for this (try them in your Protool...
  9. K

    Uk

    Hi Joey, I'd like to meet up in Real World 2.0; unfortunately I'm several hours away from London, and can't come down at the weekend due to commitments over the next few weeks - I will let you know if I can change this. In the meantime, please let me know if you travel North to see some of...
  10. K

    Has anyone heard of this company

    I would imagine http://www.directdcs.com/index.htm which took me about 1 minute with google...
  11. K

    Check if char string is integer

    This approach has a couple of obscure gotchas, eg. try it with vCharString = '-'. Best way is to parse and check each character, though you may be able to use the above method if you trim out certain characters first.
  12. K

    reading last digit in number

    Oops. Think I just spotted a 15 digit flaw in my cunning plan.
  13. K

    reading last digit in number

    I would also parse, but how about message iNumber MOD 10 view-as alert-box
  14. K

    Errors management in progress

    For older versions you can use the 'ON ERROR/etc...' style constructs, but the simple answer may be to use the 'NO-ERROR' clause, which tells Progress to omit any normal warning messages, and then handle any errors yourself. Used excessively, this can be bad practise for various reasons, eg...
  15. K

    Errors management in progress

    Good link, haven't seen that before. OP, FWIW JoeyJeremiah of this parish wrote a Try/Catch simulator available here.
  16. K

    Pie charts in RB?

    Simple and very cheap ($60!) - I like that one.
  17. K

    Pie charts in RB?

    On the OCX front, there are lots of options, eg: http://www.componentsource.com/features/charting-graphing/activex-ocx/index.html You may have .Net control options soon too with the new OE features. I've used BPS graphicserver dll/OCX in the past, expensive but very powerful. However...
  18. K

    Progress Pro*Spy Plus... activeX control and bunch more errors.

    I'm assuming OS is modern Windows, non Vista (though this should work on Vista AFAIK). Your first error is indicating the underlying problem - a component is missing or unregistered (means: Windows has not been shown how to use the component). The subsequent errors are due to Windows...
  19. K

    stop db in PET

    I'm confused by your question - how do you stop the database via progress explorer in code? Anyway, you can't stop it via the 4GL, except forking out to a os-command to do it. To stop the database from the command line, you use the DBMAN utility documented in "Database Administration...
  20. K

    stop db in PET

    Select the database and click the red stop button. This is just 4GL code to disconnect the client from the database, which is a different operation entirely.
Back
Top