Search results

  1. D

    Example on how to calculate the week number of the year from a date

    @Cecil: yes this does the trick and it also verifies that my code (with the little change - see above in this thread) also works correct (so usable in our application that uses the same code on Windows and Linux). I've tested for every day for 60 years (yes I know that this is not really needed...
  2. D

    Example on how to calculate the week number of the year from a date

    mhhh, I'm (almost) sure you're code is correct and I want to use it as a check for the output of my code (mine needs to work on Windows and Linux) but while checking I see that Your code returns 53 for 31/12/19 My code returns 1 for 31/12/19 When I check on...
  3. D

    Example on how to calculate the week number of the year from a date

    I agree but for me that is not an issue ... we are sure about the se mhhhh, indeed ... Try by moving the line: assign v-DAfirst = v-DAfirst - weekday(v-DAfirst) + 2 to just before the line: /* if the provided date is earlier then the Monday of the calculated first week of the year of the...
  4. D

    Example on how to calculate the week number of the year from a date

    I'm not saying this is the way to do it but as fas as I know this works fine /* own construction!! based on ISO-8601 rules for weeks of the year (week always starts with a Monday) week 1 is the week with the first Thursday of the year...
  5. D

    Convert some simple .net code to progress code

    Hi, Yes, thanks ... this does the trick. The thing that I could not find is the "System.String[]". I wonder how you come to that ... this is a problem that I frequently have when trying to convert some .net code. Does there exists some conversion list of .net objects to Progress object?
  6. D

    Convert some simple .net code to progress code

    Hi, I would like to convert this simple .net code to progress code but I can't make it working. Maybe someone of you know how to do this in Progress. Private Sub Form1_DragDrop(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles Me.DragDrop Dim files() As...
  7. D

    OO-construction... does it exist?

    Hi, I have the need for some methods that are (almost) always the same and I wonder if there exists some OO-contruction that makes this easier. example I always have 4 possible methods for every check that I want to make) method public static character mHasDocuments( p-hBuffer as handle)...
  8. D

    Problems with converting a piece of .net code to progress - MemoryStream

    Still te same like may other things I tried, the vCharacters stays empty The strange thing is when I do the same coding with e:Data:GetData("FileContents") (instead of e:Data:GetData("FileGroupDescriptor")) I get a result. So no idea if that FileGroupDescriptor should still work or not and/or...
  9. D

    Problems with converting a piece of .net code to progress - MemoryStream

    Thanks but tried the first block with no result. Then tried the second block but I have no idea what to do after this. How can I get that finename from there then? I can message the oIntPointer and I get some result but i guess that is just something like a pointer-value, but no filename. I...
  10. D

    Problems with converting a piece of .net code to progress - MemoryStream

    Hi Osborne, Thanks for this!! But now I get an error on the line "filename:Append(System.Convert:ToChar(FileGroupDescriptor))." I get: System.InvalidCastException: Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'. If I understand your provided code a bit: The cast...
  11. D

    Problems with converting a piece of .net code to progress - MemoryStream

    Hi, I'm already struggling for a while with converting the following .net code to Progress (Drag-and-Drop Attached File From Outlook (97 and above) to C# Window Form). The idea is to Drag&Drop some attachments from outlook to a progress .net form and then save those files in the DB. It looks...
  12. D

    Protop SQL activity - Rec Lck

    I just saw that the SQL view shows multiple Record locks (Rec Lck). As far as I know you do not have those when you make the same query from Progress (when using no-lock). So maybe I'm wrong and Progress also makes those locks and then I wonder in what view I can see that
  13. D

    Protop SQL activity - Rec Lck

    thanks for the information. Already runned against those 3 problems but now I also know the reason and if it's expected behavior
  14. D

    Protop SQL activity - Rec Lck

    So the default is lock every record to read and then release the record again? Isn't that different then what native Progress does? So that is the reason why there exist some (no lock) to be added to the sql-string so the read does not stop/quit on a records that is locked by some other session...
  15. D

    Protop SQL activity - Rec Lck

    Hi, We are experimenting with SQL-access to our database and I started Protop SQL activity to look what is happening. There I see after a request that the "Rec Lck" shows some value (combination of all Reads on the Tables). Is that normal? Does SQL always locks the records that it reads? What...
  16. D

    DB-triggers/environment or CDC

    Ok, thanks Tom
  17. D

    DB-triggers/environment or CDC

    Is it possible to define some DB-triggers that will only fire in some customers environment. But we do not want to define that trigger at the customers site itself. So we want to manage all DB-definitions (so tables/fields/triggers/...) in our development but only at a few customers we want to...
  18. D

    Progress OpenEdge Documentation Set for Dash Documentation and Snippets Browser

    It looks like the links are not working anymore... Can you provide the correct link for the docsets OpenEdge 11.7.2 to be used in Zeal?
  19. D

    Question Windows version and service pack information

    :):):) The docxfactory is already in my to-look@-list The JavaScript Desktop will also be something I will try to look @ Thanks
Top