I have a chunk of code that I want to work but it doesn't.
I have a series of pictures that I want to display in the dock item.
There is one for every hour. They are named Planet1 then the hour. An
example Planet12. That is 2:00.
What I want is the correct image to display at the correct time but I
can't find a way to combine the Base Name (Planet1) with the hour.
Example:
Dim d as date
if bprefs.hasKey("Time Zone") then
if bprefs.value("Time Zone")=0 then
// +1 hour
planet1 + str(d.hour+1).mask.graphics.drawpicture Mask
app.dockItem.graphics.drawpicture planet1 +
str(d.hour+1),0,0
end if
if bprefs.value("Time Zone")=1 then
// 0 change
planet1 + str(d.hour).mask.graphics.drawpicture Mask
app.dockItem.graphics.drawpicture planet1 +
str(d.hour),0,0
end if
if bprefs.value("Time Zone")=2 then
// - 1 hour
planet1 + str(d.hour-1).mask.graphics.drawpicture Mask
app.dockItem.graphics.drawpicture planet1 +
str(d.hour-1),0,0
end if
if bprefs.value("Time Zone")=3 then
// - 2 hours
planet1 + str(d.hour-2).mask.graphics.drawpicture Mask
app.dockItem.graphics.drawpicture planet1 +
str(d.hour-2),0,0
end if
else
bprefs.value("Time Zone")=1
end if
I want the "Planet12" picture to be displayed but It is looking for a
picture called "planet1 + str(d.hour)"
Thanks for any help
P. S. I still use RB 5.5.5
thx.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>