Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Util/timezone example
Function:
Required plugins for this example: MBS Util Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/timezone example
This example is the version from Sun, 17th Mar 2012.
Project "timezone example.rbp"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control La1 Inherits Label
ControlInstance La1 Inherits Label
End Control
Control La2 Inherits Label
ControlInstance La2 Inherits Label
End Control
Control Lo1 Inherits Label
ControlInstance Lo1 Inherits Label
End Control
Control Lo2 Inherits Label
ControlInstance Lo2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control gmt Inherits Label
ControlInstance gmt Inherits Label
End Control
EventHandler Sub Open() dim latdeg,latmin,longdeg,longmin as integer dim t as TimeZoneMBS t=new TimeZoneMBS latdeg=floor(t.latitude*90) latmin=floor((t.latitude*90-latdeg)*60) longdeg=floor(t.longitude*90) longmin=floor((t.longitude*90-longdeg)*60) la1.text=format(latdeg,"0")+"°" // <-- CONVERTED la2.text=format(latmin,"0")+"'" lo1.text=format(longdeg,"0")+"°" // <-- CONVERTED lo2.text=format(longmin,"0")+"'" gmt.text=format(t.GmtDeltaHours,"+00")+":"+format(t.GmtDeltaminutes,"00")+":"+format(t.GmtDeltaseconds,"00") End EventHandler
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.




Links
MBS FileMaker tutorial videos