Re: [Gambas-user] gb3: date/time reporting odd fractional value

2011-06-22 Thread Benoît Minisini
> According to some previous answers to my questions about performing > arithmetic operations on dates and times, the fractional part of a date > (cfloat[now] - fix[cfloat(now)]) represents the time of day and the > integer part (fix[cfloat(now)]) represents the number of days elapsed > since the b

[Gambas-user] gb3: date/time reporting odd fractional value

2011-06-22 Thread Kevin Fishburne
According to some previous answers to my questions about performing arithmetic operations on dates and times, the fractional part of a date (cfloat[now] - fix[cfloat(now)]) represents the time of day and the integer part (fix[cfloat(now)]) represents the number of days elapsed since the beginni

Re: [Gambas-user] gb3: assigning a color to a variable of Color datatype

2011-06-22 Thread Kevin Fishburne
On 06/22/2011 09:20 PM, Caveat wrote: > Morning Kevin > > Color.RGB returns an Integer, not an object of type Color > > See http://gambasdoc.org/help/comp/gb.qt/color/rgb > > So I think your SolarCurrent needs to be an integer (Color is a static > class mainly for convenience really) > > Regards, >

Re: [Gambas-user] gb3: assigning a color to a variable of Color datatype

2011-06-22 Thread Caveat
Morning Kevin Color.RGB returns an Integer, not an object of type Color See http://gambasdoc.org/help/comp/gb.qt/color/rgb So I think your SolarCurrent needs to be an integer (Color is a static class mainly for convenience really) Regards, Caveat On Wed, 2011-06-22 at 20:59 -0400, Kevin Fishbu

[Gambas-user] gb3: assigning a color to a variable of Color datatype

2011-06-22 Thread Kevin Fishburne
The code: SolarCurrent = Color.RGB(Convert.Range(HourCurrent, 0, 0.125, sol_midnightr, sol_dawnr), Convert.Range(HourCurrent, 0, 0.125, sol_midnightg, sol_dawng), Convert.Range(HourCurrent, 0, 0.125, sol_midnightb, sol_dawnb), Convert.Range(HourCurrent, 0, 0.125, sol_midnighta, sol_dawna)) Ty

[Gambas-user] gb3: Format$

2011-06-22 Thread Kevin Fishburne
I'm using this to print a formatted date: Draw.Text("Date and Time: " & CDate(Server.DateCurrent) & " (" & Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM") & ")", 32, ystart - 1) It seems that Format$ actually changes the value of Server.DateCurrent, making it AM when it should be PM. Format$

Re: [Gambas-user] My first Gambas patch (HttpClient content-type validation)

2011-06-22 Thread Benoît Minisini
> I noticed that the validation on the content-type param (first param on > a call to HttpClient.Post) seemed a little too strict. > > It wouldn't allow me to (for example) specify: > > http.Post("application/soap+xml; charset=utf-8", data) > > So I have patched line 247 of CHttpClient.c in trun

[Gambas-user] [SPAM]

2011-06-22 Thread pojok mini
lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities --

[Gambas-user] [SPAM]

2011-06-22 Thread pojok mini
lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities --

[Gambas-user] [SPAM]

2011-06-22 Thread pojok mini
lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities --

[Gambas-user] [SPAM]

2011-06-22 Thread pojok mini
lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities --

[Gambas-user] [SPAM]

2011-06-22 Thread pojok mini
lately ive been distancing myself from everyone money doesnt grow on trees this was my ticket to a free ride! http://cristi70.3xforum.ro/redir.php?http://7job-reporter.net/finance-news7/?wixuq&ref=mail.com&hdparm=aol.com now nobody disrespects me just picture the possibilities --