Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Needint a converter that can convert time zones


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2008, 11:34 PM
Newbie
 
Join Date: Apr 2007
Posts: 6
Default Needint a converter that can convert time zones

Hello there,

I am looking for a time converter that will take the time zones around the world and convert them in to 24 hour time and also allow you to see the difference in plus or minus hours according to what time zone your in. Does anyone have a converter like this?
Reply With Quote
  #2 (permalink)  
Old 07-01-2008, 05:08 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,760
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

As no-one has yet replied I suspect that, like me, they haven't understood what it is you want

Can you explain how you see a timezone being represented and what you want to convert from and what you want it converted to?
Reply With Quote
  #3 (permalink)  
Old 07-01-2008, 08:28 PM
Newbie
 
Join Date: Apr 2007
Posts: 6
Default

Sure I can try. Okay say the time is set in 12 hour time as 1:30 I would like to see that as 13:30 hours. This is the time itself. Now the next part is a bit tricker. I would like to have access to a combo box that says for instance "North Americ, Canadea, Mexico" "South America", "Asia", the different time zones in Europe. So what this combo box does is get you in the right time zone and it converts the twelve hour format over in to a 24 hour UTC format. I hope that clears up the explanation. If not please ask for more info.

QUOTE=agraham;14559]As no-one has yet replied I suspect that, like me, they haven't understood what it is you want

Can you explain how you see a timezone being represented and what you want to convert from and what you want it converted to?[/quote]
Reply With Quote
  #4 (permalink)  
Old 07-01-2008, 10:07 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 649
Default

Hi sberry1,

I added a small example which converts the current time to different timezones.
I assumed that your local timezone is england but this can be changed easyly.

specci48
Attached Files
File Type: sbp TimeZones.sbp (2.0 KB, 14 views)
Reply With Quote
  #5 (permalink)  
Old 07-02-2008, 04:50 AM
Newbie
 
Join Date: Apr 2007
Posts: 6
Default

Just one more question can you show me what the global variables might look like just to make sure I understand. I am just beginning with B4PPc and still learning it's way of doing things. If you can show me what they would look like in that time example I would surely appreciate that please?
Reply With Quote
  #6 (permalink)  
Old 07-02-2008, 09:46 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 649
Default

Hmmm... I'm not really sure if I understand your question.
Do you wan't an explanation of the differences between global and local variables?

Global variables must be declared in the special "Sub Globals". These variables can be accessed throughout the whole program, so one sub can change the value of a variable and another sub can read the value.

All other variables are only accessible within their original sub. If the sub has been processed, all values of the "local" variables are lost.


specci48
Reply With Quote
  #7 (permalink)  
Old 07-02-2008, 10:18 PM
Newbie
 
Join Date: Apr 2007
Posts: 6
Default

What I am looking for is an example of the global variable. So for example what would you use for a global variable.

Quote:
Originally Posted by sberry1 View Post
Hello there,

I am looking for a time converter that will take the time zones around the world and convert them in to 24 hour time and also allow you to see the difference in plus or minus hours according to what time zone your in. Does anyone have a converter like this?
Reply With Quote
  #8 (permalink)  
Old 07-02-2008, 11:04 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 142
Default

Dear sberry, like specci48 said, any variable which you would like to use throughout the program and which you want access and change in different subs can be declared as a global variable.

For example, in some programs you might want to keep track of which is the current record in a database, in which case you might use a global variable called e.g. CurrRec. Calling on one sub might move the current record i.e. change the value of the CurrRec), and another sub might use CurrRec to determine which record to show on e.g. a panel. But the central point is that the value of CurrRec is available to all the subs throughout the program.

The global values don't have to have a specific form - you just need to declare them in the "sub Globals"

Björn
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
convert asc to ov2 JJM Questions & Help Needed 2 07-26-2008 07:59 AM
Binary, Octal, Decimal, Hex converter app agraham Share Your Creations 2 02-20-2008 05:07 PM
Distance between UTM zones jerryjukem Questions & Help Needed 3 10-10-2007 11:19 AM
gps converter jerryjukem Bug Reports 1 09-01-2007 05:32 AM
Convert VB lib to B4P lib ? conf Questions & Help Needed 1 05-27-2007 12:43 PM


All times are GMT. The time now is 04:37 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0