@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...
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...
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...
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...
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?
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...
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)...
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...
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...
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...
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...
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
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.