Recent content by Serj HAMMER

  1. Serj HAMMER

    Num records in table

    Hello, avdberg. Simply add counter inside your for-each cicle: DEFINE STREAM fLog. DEFINE VARIABLE lCount AS INTEGER NO-UNDO. lCount = 0. For Each ContractRegel No-lock: Export Delimiter "~t" ContractRegel. lCount = lCount + 1. End. OUTPUT STREAM fLog TO VALUE("export.log") APPEND. PUT...
  2. Serj HAMMER

    Any Idea what's Wrong with my Query?

    twin NO-LOCK Hello, dayv! OPEN QUERY br-Task FOR EACH task WHERE task.StatusFlag = "N" NO-LOCK AND Task.MISID = cb-Programmer:SCREEN-VALUE NO-LOCK, - NO-LOCK should not be plased between AND. And it can be used only once per each table. I think, that after Programmers table You...
  3. Serj HAMMER

    Cim program for a Trigger

    Yes, it is better solution It is better solution, because onlty this solution you can have. 1) WAIT-FOR in prg1 do not see frames, widgets and triggers in procedure prg2 (except persistent triggers) 2) i.e. You need put WAIT-FOR to prg2 3) In prg2, in addition to WAIT-FOR you must define...
  4. Serj HAMMER

    Cim program for a Trigger

    it@flude.co.uk are right I agree with it@flude.co.uk. It is very clear, schafik007, when You use input parameters. As I understood, your program (prg1) exctly independent from calling progcedure. In this situation you define frame in prg1, write (i.e. define) triggers and use WAIT-FOR (or...
  5. Serj HAMMER

    Cim program for a Trigger

    Does Your trigger out of scope? Trigger must be persistent (run only) or defined (or created) in the same scope, where will be WAIT-FOR. Does it solve Your problem? And what is the 'cim program'? (I don't know...)
  6. Serj HAMMER

    ANALYZE-SUSPEND syntax

    and do You know format? Leira, thank you! You do not let my idea to die. :) You write: _VERSION-NUMBER (shows versionnumber of uib/ab program was created with) and I have in my program: _VERSION-NUMBER AB_v9r12 GUI ADM2 do you know, what format of part: AB_v9r12 GUI ADM2 or where I can find...
  7. Serj HAMMER

    ANALYZE-SUSPEND syntax

    _ttmaint.w? What is this?... Hello, bulklodd, thank you for answer. Yes, I am trying to make a temp-table definition without db connection. But I trying to make this definition visible to ADM2 during loading file, i.e. make it inside &ANALYZE-SUSPEND. And I can-not found '_ttmaint.w' in my...
  8. Serj HAMMER

    ANALYZE-SUSPEND syntax

    Wow! Привет. Может ты знаешь, какой синтаксис у этой гадости? А то она не желает в smart-frame броузер цеплять, пока я его не построю на таблице, унаследованной с db-экземпляра... За AVATAR - спасибо. Старался, чтобы он соответствовал тону вопросов.
  9. Serj HAMMER

    CHUI event question

    no idea... I make the same model in my environment (9.1D, tty, linux) and it works fine. IMHO you have some "hidden" logic, that you don't see. function f1 returns logical (input pstr as character): /* define variable fl as logical no-undo. */ message "is correct?" "[" + pstr + "]" /*...
  10. Serj HAMMER

    CHUI event question

    Please, show model As I understand, you "click" Ok, then fires trigger ON-LEAVE, you also choose "Yes" and you whant to continue Ok-trigger? I think, it will, because this is build-in logic. If Ok-trigger "not fired" (i.e. "aborted"? - it was started, when you "click" Ok) - please show some...
  11. Serj HAMMER

    Num records in table

    some tuning... DEFINE QUERY q1 FOR customer FIELDS ( ). - it is not faster, but may be it is more compact?..
  12. Serj HAMMER

    ANALYZE-SUSPEND syntax

    ...and format of _VERSION-NUMBER? Thank you, Golem, thank you very much! And does value of _VERSION-NUMBER derictive had it own format? Example: "AB_v9r12 GUI ADM2" - is it free text string, or it is field-devided string?
  13. Serj HAMMER

    Cycle in procedure! (Or Progress Ping-Pong)

    Where was error fired? You have a cycle, that try to write to the database and errors during this cycle, does not You? Or it is error inside DB-Trigger?
  14. Serj HAMMER

    Displaying fields from a dynamic temp-table

    How You display this temp-table? Can You show example of code, that You use to display this temp-table?
  15. Serj HAMMER

    ANALYZE-SUSPEND syntax

    may be ANALYZE-SUSPEND _VERSION-NUMBER only? Dear sirs and madams, excuse me for intrude, but may be one of you have answer on simple part of my question: &ANALYZE-SUSPEND _VERSION-NUMBER AB_v9r12 GUI ADM2 &ANALYZE-RESUME How many variations may has this construction? Thanks...
Top