Recent content by newprog

  1. N

    Comparing fields

    I'm still a bit confused over what you are trying to achieve but that's probably me. Completely misunderstood your problem first time round. This code will give you the changed fields in a comma-separated list which you could then go through and write to your table. This would only give you...
  2. N

    Comparing fields

    You don't have to write all of them. You can put your code sample into the trigger like below. I'm assuming tProdajnaMjesta is a buffer of prod-mjesto in this example. TRIGGER PROCEDURE FOR WRITE OF prod-mjesto OLD BUFFER tProdajnaMjesta. DEFINE VARIABLE cPromjena AS CHARACTER NO-UNDO...
  3. N

    Comparing fields

    You could put it in a write trigger for the table if you are able to do that? TRIGGER PROCEDURE FOR WRITE OF address OLD BUFFER bAddress. You can then compare what you want and write to any table you want. Without more info on what you want specifically I can't really suggest anything else.
  4. N

    Socket slowing down

    Cecil Thanks for the pointer about resetting memptr to zero before setting the size. I've also removed the "DELETE PROCEDURE THIS-PROCEDURE.". After some more testing I have discovered what the problem was. In the server.p program I had also put a display statement, that I hadn't included in...
  5. N

    Socket slowing down

    I have a problem that has shown up whilst load testing sockets in that the speed of the socket response becomes slower after each request. First time I've used sockets so hopefully the technique is OK.:) I am on 10.2a, appserver, unix server. Client side code. (client.p) DEFINE...
  6. N

    String Problem

    Use the REPLACE command cString = "123, 456 *". cString = REPLACE(cString, " ","").
  7. N

    Conditional Break by with multiple field

    Well spotted StuartT. I agree about the USE-INDEX. That what you get for copying & pasting the code from the original. :blush:
  8. N

    Conditional Break by with multiple field

    Try the following by moving the second 'by' out of the first one. for each xshd_det no-lock where ...... use-index xshd_shipdate, each ad_mstr no-lock where....... use-index ad_addr, each pt_mstr no-lock where..... use-index pt_part, each ih_hist no-lock where ...... use-index ih_nbr, each...
  9. N

    Round Table

    Hi Check out the following link. Tugboat own roundtable. http://www.tugboatsoftware.com/index.php you can get a demo download from here.
  10. N

    Button LABEL = image + text

    You could try defining the button with an image up as you have already done & then add 'Text' from the palette overlaying the text onto the button. You should then have a button with both an image & text on it.
  11. N

    QAD to SAP interface creation

    You might get more luck posting this in QAD's MFG/PRO under Applications.
  12. N

    single character out of a string...

    Yes disp substring("Hello",1,1). Just put a variable in "Hello" the first digit is position, the second is length. So if you wanted "He" disp substring("Hello",1,2). etc etc
  13. N

    Button label on two lines?

    It can be done but not through button labels. Create your button, with no label, on the window and then put 2 Text objects with your two lines into the button. Then when you press anywhere in the button the 'on choose' trigger will fire. See my attached doc for screen shots. Tried this...
  14. N

    Color coding in 10.1c

    I suspect it may well be illegal because we had the same issue & we were told by Progress that the script editor license needs to be bought seperately. OpenEdge Architect does have colour coding in the editor screen and in the Outline view for windows but does not from Appbuilder/procedure editor.
  15. N

    accumulate into weekly buckets

    BREAK Over a series of block iterations, you might want to do some work based on whether the value of a certain field changes. This field defines a break group. For example, you might be accumulating some value, such as a total. You use the BREAK option to define state as the break group...
Top