Recent content by confidentbala

  1. C

    Browser return

    Hi, I am using a browse in a loop and the browse is enabled no proble in that. I have written a trigger "on enter of browse" it updates a field and after entering the value the control return to the same browse and not the next browser in the loop. Pls consider the below one for the exact...
  2. C

    Add 1 year to given date

    we can add 365 to the variable. define variable i as date. i = 09/09/08. disp i with frame a. i = i + 365. disp i with frame b. But this cannot be correct if the year is leap year.
  3. C

    Passing variable name instead of table name in for each statement

    Hi All, Is there any possible to get the table name in a variable and pass the variable name in for each statement as follows. DEFINE VARIABLE m_table AS CHARACTER NO-UNDO. m_table = "pt_mstr". FOR EACH m_table NO-LOCK. DISPLAY m_table. END. Help me out. Thanks in advance.:confused:
  4. C

    Assigning one key action to another key press

    Thanks lord icon, I tried your suggesstion it give me an error ** Unable to understand after -- "RETURN F1". (247) ** Could not understand line 10. (198) but when it is used without to objectname in return, it runs but can't know it is assigning the "f1" function to "enter" key. Bala
  5. C

    Assigning one key action to another key press

    Hi all, Is there any way to assign a key press function to be happened for the another key press. (i.e.) if ENTER key is pressed then i want to perform the action which will happen when F1 key is pressed. i used trigger and assigned if enter is pressed then assigning LASTKEY = f1 , but it...
  6. C

    Parse a path from comma delimited field?

    Dear Syddie, Can u explain the ENTRY statement syntax with an example. Thanks Bala.
  7. C

    pattern counting

    hi mchinnansm, i think you want to count some pattern occurs how many times. for example how many "hi" in a line. here is a quick and dirty code. def var i as char. def var what_word as char. def var word_length as integer. def var k as integer. def var j as integer. j = 0. i = "mbsm hi...
  8. C

    count of "/*" and "*/"

    Thanks to all, my problem is solved :)
  9. C

    count of "/*" and "*/"

    thanks somewhat i am near to my solution. if suppose i have a line like this /*hi*/ m_tin_lbl = GetTermLabel("XX_TIN:",4). /*"TIN:".*/ /*PSK01*/ then this line is not commented actually how to get the actual line. this is a sample and can u explain it when this happens for multiline and...
  10. C

    count of "/*" and "*/"

    that is if i encounted /* then i have to increment my count and if i encounted */ then decrement the count.
  11. C

    count of "/*" and "*/"

    thanks for reply. I have to take a program and get the details in it. (i.e.) i want to know how many GetTermLabels present in it. It should not include the commented line (i.e.) i should not read the GetTermLabel that is commented. Any idea
  12. C

    count of "/*" and "*/"

    Hi all, In a line i want to compare "/*" is equal to "*/". I used num-entries but it checks correct for single character only. anybody as any idea to do this. Thanks in Advance. Bala :(
  13. C

    hi

    Hi Welcome to Progress Talk
  14. C

    Update with alertbox

    Once again Thanks casper. I got the idea explained by you. BALA.
  15. C

    Update with alertbox

    Hi casper, Can you explain it with sample piece of code. Thank You
Top