[Gambas-user] MySQL, $Query = "SELECT CURTIME()"

abbat abbat.81 at ...787...
Sun Sep 23 10:15:35 CEST 2012




abbat wrote:
> 
> Hi,
> 
> I cant get how to get current time.
> 
> In tutorial is clear example to get var from Query using name of Query:
> 
>  $Phone = $Result!Phone
> 
> But how to get Result if my Query is 
> $Query = "SELECT CURTIME()"
> 
> And, how to trasform that result to date format
> 
> Thanks .
> 



It was easy.
Dim CurTime as Date
$Query = "SELECT CURTIME()"
 CurTime = $Result!"CURTIME()"

-- 
View this message in context: http://old.nabble.com/MySQL%2C-%24Query-%3D-%22SELECT-CURTIME%28%29%22-tp34468167p34468226.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list