Search results

  1. K

    Strong Scope Use

    Thanks a lot to everyone. Sorry, but I was not taking these above examples as best coding practice. In Programing hand book they gave the solution same what you (Tom and RealHeavyDude) suggested, scoping the buffer to DO FOR block rather than to whole procedure. Here my doubt was, as Buffer...
  2. K

    Strong Scope Use

    Here is one example, I am confused with these examples as given in Programming hand book - TEST1.p ******************************************************************** DEFINE BUTTON upd LABEL "Update". DEFINE VAR current-cust AS RECID. FORM customer.cust-num name SKIP upd WITH FRAME...
  3. K

    Difference between Sub-Procedure and Function

    My sincere thanks to all for replying. AS all we know, nothing can replace External Procedure in Progress as it's the heart of progress 4GL, unitl we go for OOPs (OpenEdge - ABL). I was trying to clear the things only between Sub procedures and Functions. @ Tom - Sub procedures is also the...
  4. K

    Difference between Sub-Procedure and Function

    Thanks a lot, But as I read, in Sub-Procedure aslo we can't add any input blocking statement, am I right?
  5. K

    Difference between Sub-Procedure and Function

    Hi All, I have one more silly question the difference between Sub-procedure and Function. One I know is that Returning Value. Are there any more differences? Functions are faster compare to Procedures, I heard but don't know why. Functions generally used for small business logic not for...
  6. K

    Streams limitation

    Yeah, in 10.x onwards there is no such problem of limitation of number of streams.
  7. K

    Strong Scope Use

    Yeah Maxim, that's the common code I saw, while modifying the code.
  8. K

    Strong Scope Use

    Thanks Tom for replying. This is the good example, what I understand from this example is that we can reduce the scope of transaction specific to this block using DO FOR block. It is good practice when we have a lengthy code inside FOR EACH block and we are updating data too, at this place we...
  9. K

    Strong Scope Use

    Hello everyone! I know there are Strong Scope in Progress with REPEAT FOR and DO FOR blocks. But I nver saw any use of these in my career of 4.5 years. Could please anyone help me to find where exactly we can make use of Strong scope in programming? Thanks!
  10. K

    Share-lock

    Thanks a lot "RealHeavyDude", Sorry I couldn't find find any proper name! So I can assume it as leftover of old Progress Version and generally will not be used in modern applications?
  11. K

    Share-lock

    Hi All, I know there are 3 kinds of Locks in Progress Exclusive, Share and No Lock. I know all properties of these locks. I tried a lot, but I couldn't find the answer of where we can use SHARE-LOCK? As in multiuser it is always suggested to use EXCLUSIVE-LOCK with NO-WAIT NO-ERROR, what...
  12. K

    To get the info of particulat field, or fillin, or combo etc.

    Hi Pawan, As j4n suggested in his first code that can provide any kind of information related to DB field(If you are working with DB fields not variables). Tamhas also suggested working with procedure variables you cant get much info. Below is sample piece of code, I created one GUI window with...
  13. K

    Define a Temp-Table with a single field exception

    Hi Pawan, As it's been already told its of no use doing this thing, first of all due to AppServer and if you work with Dynamic Temp-Table then you have to work with Dynamic Query, that is little bit boring and doesn't provide so much of freedom as we have working with normal tables. Though here...
Top