Recent content by m1_ru

  1. M

    Move Focus to a Fill-In Object

    Just small addition: fill-in must be sensitive when you execute apply "entry" statement. Otherwise it will be ignored. Also it is working not only for fill-in but for any widget: button, browser, radio-set and so-on.
  2. M

    Possiblity to update using encrypted .p

    Try to run client with starup parameters <b>-rr -rx</b> From progress help: -rx ----------------------------------------------------------- USE WITH: Client Session Use this parameter to enable a query or run-time version of PROGRESS to compile encrypted source code. If PROGRESS is...
  3. M

    comaring two values ??

    <pre> for each atable break by atable.afield : if first-of( atable.afield ) then do: /* process first record of each group */ end. /* process each record */ if last-of( atable.afield) and not first-of( atable.afield) then do: /* process last record of each...
  4. M

    Production Mode Changes...?

    One of possible ways to perform upgrade and development: 1. All updates of database structure made only through small incremental *.df files that stored permanently. 2. During some changes we also need to run utilities to fill new fields. Those programmes also stored. When you need...
  5. M

    Changing BGColor of Browse Calc field

    > I am a little confused on your suggestion. How exactly would one state > Field 1 + Field 2 @ Variable? Try next: 1. Go to Definitions section of your browser <code> define variable v-calc-field as character no-undo format "x(20)" label "Calc field" . </code> 2. Go to Column...
  6. M

    How to close a window from a smart browser?

    Try to use next code in trigger on choose of button Exit in browser: <code> run notify in this-procedure (input 'exit,container-source':u ) . </code>
  7. M

    Importing files from os-dir

    As I understand new files will be created while executing multiple import from os-dir statements. Progress does not document behaviour of import from os-dir statement: sometimes it can find new files, sometimes - not. If i would write such program, i would make it in four stages: 1...
  8. M

    Printer Device Driver Name API

    One of possible ways to print directly to text printers (we use it in our system): 1. Generate the report - write all information to temporary file. Be sure that it will have unique file-name. Strandard progress programm adecomm/_tmpfile.p can be used. 2. Execute...
  9. M

    Connect v8 with v9 client

    Progress v9 client can not connect directly to v8 database. There must be V8 server running on the database. And then V9 client can be connected to V8 server.
  10. M

    Reverse Engineering

    Are there any other tools that do the work better?
  11. M

    Reverse Engineering

    You can try Platinum ERwin to make reverse engneering. We use ERwin 3.52 for for a long time and it proved to be one of the best tools for progress database design. It is possible to make reverse engeneering from *.df file. It will restore tables and fields with all attributes. Also it...
  12. M

    using NEXT-VALUE(..) "dynamically"

    We have some problems, when wrote utilities for automatic database generation, and decide to use compile-time parameters . Unfortunately program require compilation licence for execution. <pre> /* svdynrw.p Read and write sequence value {1} - sequence value {2} - database...
  13. M

    right alignment

    Define function: <pre> function str-right-align returns character ( input p-string as character , input p-width as integer ) : return fill(" ", max(p-width - length(p-string), 0) ) + p-string . end function. </pre> Then use calculated field to display...
  14. M

    Browse scroll-notify trigger

    To display dependent information in our programs we usually use trigger on value-changed: <pre> on value-changed of {&browse-name} in frame {&frame-name} do: run display-dependent-info . end. procedure display-dependent-info : do with frame {&frame-name}: if available...
  15. M

    Finding 18 years-old birthday

    /* sorry i really forget about those people */ /* that have one birthday during four years */ /* may be this will be good enough */ /* but it will return the same date */ /* for 02/29/2000 and 03/01/2000 */ display date( month(v-date), 1, year(v-date) + 18) + day(v-date) - 1 format...
Top