[nsbasic-ce] Re: setting the date and time

2009-05-06 Thread t2thecathp
This control worked for me.

I was excited about using the NTP client from IP*Works!, but it never worked.  

No big deal, I just wrote a SOAP call to grab the correctly formatted 'local 
time' from a Ruby on Rails server, which is this in Ruby code:  
Time.now.strftime("%m/%d/%y %H:%M:%S %p") 

--- In nsbasic...@yahoogroups.com, "George Henne"  wrote:
>
> The MGCEWin32 control is no longer support - the author passed away in
> 2004. Most of the code then moved to the NSBWin32 control. It is
> available on all devices.
> 
> It should work for you:
> 
> 
> >The MGCEWin32 installer is not included with NSBasic.  I found a copy in
> >the download link on the Big Red Toolbox Page:  http://www.nsbasic.com/
> >pub/ce/BigRedToolbox/MGCEWin32.exe.
> >
> >However, when I try to install it, ActiveSync says:
> >Unsupported Device Type - MGCEWin32 Control Set does not support the
> >connected device type
> >
> >I am using a Symbol MC70, which is ARM-based.
> >
> >Do I have any other options?
> >
> >--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
> >>
> >> --- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
> >> >
> >> > Is it possible to set the date and time on the handheld device with
> >NSBasic/CE code?
> >> > 
> >> > Everytime I reset the device, it thinks it is 2004 or 2005.
> >> >
> >> 
> >> Sounds like the RTC is not working... need new battery?
> >> 
> >> I think you can set or retrieve the time and date by using:
> >> 
> >> addobject "MGCEWin32.API", "API", 0, 0, 0, 0
> >> d = API.SystemTime
> >> API.SystemTime = Now
> >> 
> >> See The Big Red Toolbox , MGCEWin32
> >> 
> >> http://www.nsbasic.com/ce/info/BigRedToolbox/MGCEWin32.htm
> >> 
> >> The problem is who sets the values before you call this? InputBox?
> >> 
> >> Shades of old DOS when it asked you for the time and date at boot time.
> >> 
> >> Hope this helps..
> >> Ben
> >>
> >
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



Re: [nsbasic-ce] Re: setting the date and time

2009-04-30 Thread George Henne
The MGCEWin32 control is no longer support - the author passed away in
2004. Most of the code then moved to the NSBWin32 control. It is
available on all devices.

It should work for you:


>The MGCEWin32 installer is not included with NSBasic.  I found a copy in
>the download link on the Big Red Toolbox Page:  http://www.nsbasic.com/
>pub/ce/BigRedToolbox/MGCEWin32.exe.
>
>However, when I try to install it, ActiveSync says:
>Unsupported Device Type - MGCEWin32 Control Set does not support the
>connected device type
>
>I am using a Symbol MC70, which is ARM-based.
>
>Do I have any other options?
>
>--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>>
>> --- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
>> >
>> > Is it possible to set the date and time on the handheld device with
>NSBasic/CE code?
>> > 
>> > Everytime I reset the device, it thinks it is 2004 or 2005.
>> >
>> 
>> Sounds like the RTC is not working... need new battery?
>> 
>> I think you can set or retrieve the time and date by using:
>> 
>> addobject "MGCEWin32.API", "API", 0, 0, 0, 0
>> d = API.SystemTime
>> API.SystemTime = Now
>> 
>> See The Big Red Toolbox , MGCEWin32
>> 
>> http://www.nsbasic.com/ce/info/BigRedToolbox/MGCEWin32.htm
>> 
>> The problem is who sets the values before you call this? InputBox?
>> 
>> Shades of old DOS when it asked you for the time and date at boot time.
>> 
>> Hope this helps..
>> Ben
>>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: setting the date and time

2009-04-30 Thread t2thecathp
I feel kinda dumb for not noticing, but IP*Works! includes an NTP Client.

The control is called 'NetClock'... not to be confused with the Usenet control 
called 'NNTP'.

So I should be able to use this, which is nice b/c the MGCEWin32 control won't 
install on my device.

--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
> >
> > Is it possible to set the date and time on the handheld device with 
> > NSBasic/CE code?
> > 
> > Everytime I reset the device, it thinks it is 2004 or 2005.
> >
> 
> Sounds like the RTC is not working... need new battery?
> 
> I think you can set or retrieve the time and date by using:
> 
> addobject "MGCEWin32.API", "API", 0, 0, 0, 0
> d = API.SystemTime
> API.SystemTime = Now
> 
> See The Big Red Toolbox , MGCEWin32
> 
> http://www.nsbasic.com/ce/info/BigRedToolbox/MGCEWin32.htm
> 
> The problem is who sets the values before you call this? InputBox?
> 
> Shades of old DOS when it asked you for the time and date at boot time.
> 
> Hope this helps..
> Ben
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: setting the date and time

2009-04-30 Thread t2thecathp
The MGCEWin32 installer is not included with NSBasic.  I found a copy in the 
download link on the Big Red Toolbox Page:  
http://www.nsbasic.com/pub/ce/BigRedToolbox/MGCEWin32.exe.

However, when I try to install it, ActiveSync says:
Unsupported Device Type - MGCEWin32 Control Set does not support the connected 
device type

I am using a Symbol MC70, which is ARM-based.

Do I have any other options?

--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
> >
> > Is it possible to set the date and time on the handheld device with 
> > NSBasic/CE code?
> > 
> > Everytime I reset the device, it thinks it is 2004 or 2005.
> >
> 
> Sounds like the RTC is not working... need new battery?
> 
> I think you can set or retrieve the time and date by using:
> 
> addobject "MGCEWin32.API", "API", 0, 0, 0, 0
> d = API.SystemTime
> API.SystemTime = Now
> 
> See The Big Red Toolbox , MGCEWin32
> 
> http://www.nsbasic.com/ce/info/BigRedToolbox/MGCEWin32.htm
> 
> The problem is who sets the values before you call this? InputBox?
> 
> Shades of old DOS when it asked you for the time and date at boot time.
> 
> Hope this helps..
> Ben
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: setting the date and time

2009-04-29 Thread t2thecathp
I was thinking about making a SOAP call that will grab the correct date/time.

I don't thing I will go so far as to write a NTP client, but I plan to grab the 
time/date from a network source.


--- In nsbasic...@yahoogroups.com, "bwolodko"  wrote:
>
> --- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
> >
> > Is it possible to set the date and time on the handheld device with 
> > NSBasic/CE code?
> > 
> > Everytime I reset the device, it thinks it is 2004 or 2005.
> >
> 
> Sounds like the RTC is not working... need new battery?
> 
> I think you can set or retrieve the time and date by using:
> 
> addobject "MGCEWin32.API", "API", 0, 0, 0, 0
> d = API.SystemTime
> API.SystemTime = Now
> 
> See The Big Red Toolbox , MGCEWin32
> 
> http://www.nsbasic.com/ce/info/BigRedToolbox/MGCEWin32.htm
> 
> The problem is who sets the values before you call this? InputBox?
> 
> Shades of old DOS when it asked you for the time and date at boot time.
> 
> Hope this helps..
> Ben
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---



[nsbasic-ce] Re: setting the date and time

2009-04-29 Thread bwolodko
--- In nsbasic...@yahoogroups.com, "t2thecathp"  wrote:
>
> Is it possible to set the date and time on the handheld device with 
> NSBasic/CE code?
> 
> Everytime I reset the device, it thinks it is 2004 or 2005.
>

Sounds like the RTC is not working... need new battery?

I think you can set or retrieve the time and date by using:

addobject "MGCEWin32.API", "API", 0, 0, 0, 0
d = API.SystemTime
API.SystemTime = Now

See The Big Red Toolbox , MGCEWin32

http://www.nsbasic.com/ce/info/BigRedToolbox/MGCEWin32.htm

The problem is who sets the values before you call this? InputBox?

Shades of old DOS when it asked you for the time and date at boot time.

Hope this helps..
Ben


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~--~~~~--~~--~--~---