Search results

  1. M

    Date Substration

    Hi If you use the buffer object (buffer_hand::data_field), to subtract is necessary cast this object to date. M.
  2. M

    How to do for each loop on list of tables

    you can write source code like this: METHOD PUBLIC CHAR getDBLogNameForFile (INPUT cFileName AS CHAR): DEF VAR i AS INTEGER. DEF VAR dbLogName AS CHAR. DEF VAR txtLogName AS CHAR. DEF VAR bhFileSys AS HANDLE. DEF VAR qhFileSys AS HANDLE. DEF VAR lQueryOk AS LOGICAL...
  3. M

    how get the value

    you right DEF TEMP-TABLE table_1 FIELD field_A AS CHAR FIELD field_B AS CHAR FIELD field_C AS INT. DEF TEMP-TABLE table_2 FIELD field_B AS CHAR FIELD field_D AS INT. CREATE table_1. table_1.field_A = "01". table_1.field_B = "A". table_1.field_C = 2. CREATE table_1...
  4. M

    how get the value

    Hi, In yours example, if relation key is field_B, neither of record table_1 (where field_C <= 3), could not find a record in table_2 (where field_D = 1) find returns null Mirek
  5. M

    calling methods

    Hi, I found better solution http://www.oehive.org/node/1465 requires OpenEdge 10.1c or later
  6. M

    calling methods

    PROGRESS 10.1B Hi, extst a better way (example below) FOR CALL METHOD - object-oriented programming - WHEN we have METHOD NAME (OR NOT) but instance OR CLASS NAME we'll have IN runtime ? something LIKE that - injection instance OR creating WITH reflection (NOW I USE FUNCTION, CALL WITH...
  7. M

    How can i test if a programm is alredy running?

    if you have own sources, inlude at the begin every procedure function methods write to record (table of user session, one per loged user, created when start delete when finished) at the end save it, you have who and whot and when executed, and how long time. if original sources not yours that's...
  8. M

    How can i test if a programm is alredy running?

    ok i understand, i not know accomplish solution, IMHO you need catch the begin and end of procedure, like count time execution M
  9. M

    How can i test if a programm is alredy running?

    Hi, What you want to look ? Locked reckord or tables, or other ... If you needed new instans the *.r files, find this in memory delete and call new - of course if its possible. Maybe you need own test environment. M
  10. M

    Subtraction dates

    Thanks Casper, Cast is my types solve, in validator function I cast to static date var, because one side is calculate from string fileds. Are you meet similar situation in other types, operator or something else? I repeat my question - cast is realy necessary, in all types for safe? I would...
  11. M

    Subtraction dates

    I use in test environment - OpenEdge Release 10.1B produce - Release 10.1B03 the real source: FUNCTION isDataOtrzDataUm16OK$ RETURN LOG (INPUT bh AS HANDLE): DEF VAR lOk AS LOG INIT TRUE. DEF VAR lClass AS LOG. DEF VAR hSet AS HANDLE. DEF VAR p-data-umow...
  12. M

    Subtraction dates

    Simplified source: When uncoments 7 subsection progress throw error. DEF VAR hSet AS HANDLE. DEF VAR hQ AS HANDLE. DEF VAR cTxtQuery AS CHAR. DEF TEMP-TABLE tt FIELDS d AS DATE FIELDS i AS INT FIELDS l AS LOG FIELDS dd AS DEC. DEF BUFFER btt FOR tt...
  13. M

    Subtraction dates

    Hi, Anyone have a similar problem? I write dynamic module to construct full txt query from outside details, to calculate logical values from parsed text, geting file, fields, function, methods and other to construct condition and validate this text, and I use more dynamic engine in my source. I...
Top