Alaska Software Inc. - Activex SLATOMIC.OCX implementation!
Username: Password:
AuthorTopic: Activex SLATOMIC.OCX implementation!
Willy MollersActivex SLATOMIC.OCX implementation!
on Fri, 26 Jul 2013 23:23:46 +0200
Peter AlderliestenRe: Activex SLATOMIC.OCX implementation!
on Sat, 27 Jul 2013 09:55:03 +0200
Willy,

> Does anyone have implemented this AtomicClock ActiveX Control in xbase++?
> http://www.samlogic.net/components/slatomic.htm
> It is free and can be downloaded!

>        oAtime:SelectServer := 0        Don´t  work!
>        oAtime:ServerType := 0         Don´t  work!
> 
>       oATime:ReadTime                   Don´t  work!
>       msgbox(oATime:TimeStr")       Don´t  work!

I assume these don't work because you what call as instance variables are
specified as methods. You should try this:
	oAtime:SelectServer()
	if oAtime:readTime()
	   cTime := oAtime:TimeStr
	endif
etc.

Peter
Willy MollersRe: Activex SLATOMIC.OCX implementation!
on Sat, 27 Jul 2013 11:43:17 +0200
James LoughnerRe: Activex SLATOMIC.OCX implementation!
on Sat, 27 Jul 2013 15:21:16 -0400
SO what is your new code?? Did you pass a server string?

Jim

On 07/27/2013 05:43 AM, Willy Mollers wrote:
> Hello Peter
> many thanks for your answer.
> If I do as you suggest, the following error comes on (NOMETHOD):
> -----------------------------------------------------------------------------------------------------------
> oError:args :
>            -> VALTYPE: C VALUE: SelectServer
> oError:canDefault   : Y
> oError:canRetry     : N
> oError:canSubstitute: Y
> oError:cargo        : NIL
> oError:description  : Schwerwiegender Fehler
> oError:filename     : NIL
> oError:genCode      : NIL
> oError:operation    : SelectServer
> oError:osCode : -2147418113
> oError:severity : 2
> oError:subCode :       6500
> oError:subSystem : Automation
> oError:thread : 1
> oError:tries        : NIL
> -------------------------------------------------------------------------------------
> CALLSTACK:
> Aufgerufen von AUTOMATIONOBJECT:ONERROR(1344)
> Aufgerufen von ASCOMERROR:RAISE(324)
> Aufgerufen von ASCOMERROR:RAISEERROR(593)
> Aufgerufen von ASCOMERROR:RAISEONERROR(672)
> Aufgerufen von AUTOMATIONOBJECT:NOMETHOD(1238)
> Aufgerufen von DOATOMICTIME(32)
> Aufgerufen von (B)CREATEMDIMENU(1214)
> Aufgerufen von APPEXEC(289)
> Aufgerufen von MAIN(323)
> -------------------------------------------------------------------------------------------------------------------
> Willy
>
> <Peter Alderliesten> schrieb im Newsbeitrag
> news:1pa5j97h98ywf$.1gcl5zd8ilat6$.dlg@40tude.net...
>  > Willy,
>  >
>  >> Does anyone have implemented this AtomicClock ActiveX Control in
> xbase++?
>  >> http://www.samlogic.net/components/slatomic.htm
>  >> It is free and can be downloaded!
>  >
>  >>        oAtime:SelectServer := 0        Don´t work!
>  >>        oAtime:ServerType := 0         Don´t  work!
>  >>
>  >> oATime:ReadTime  Don´t  work!
>  >> msgbox(oATime:TimeStr")       Don´t work!
>  >
>  > I assume these don't work because you what call as instance variables are
>  > specified as methods. You should try this:
>  > oAtime:SelectServer()
>  > if oAtime:readTime()
>  >    cTime := oAtime:TimeStr
>  > endif
>  > etc.
>  >
>  > Peter
>  >
Willy MollersRe: Activex SLATOMIC.OCX implementation!
on Sun, 28 Jul 2013 00:05:04 +0200
Peter AlderliestenRe: Activex SLATOMIC.OCX implementation!
on Mon, 29 Jul 2013 10:11:51 +0200
Willy,

> If I do as you suggest, the following error comes on (NOMETHOD)

The site you pointed to documents SelectServer as a method.
Anyway, you had no succes addressing is as an Ivar as well.
I am a bit suspicious that the object is not properly created.
If you call ComLastErrror() directly after the create(), does that report
something?

Peter
Willy MollersRe: Activex SLATOMIC.OCX implementation!
on Mon, 29 Jul 2013 21:45:22 +0200
Hi Peter,

ComLastError()  give back 0   (no error!)

Willy

<Peter Alderliesten> schrieb im Newsbeitrag 
news:me3dvfx8gjjc$.1o49307vkzitw.dlg@40tude.net...
> Willy,
>
>> If I do as you suggest, the following error comes on (NOMETHOD)
>
> The site you pointed to documents SelectServer as a method.
> Anyway, you had no succes addressing is as an Ivar as well.
> I am a bit suspicious that the object is not properly created.
> If you call ComLastErrror() directly after the create(), does that report
> something?
>
> Peter
>