Objectmix
Tags Register Mark Forums Read

Current coordinates system value (using WCSetCoordinateSystem function) : Clipper

This is a discussion on Current coordinates system value (using WCSetCoordinateSystem function) within the Clipper forums in Programming Languages category; Hi VO'ers, I need to use the WCSetCoordinateSystem() function with True parameter to change the coordinates system. I would like to keep the old value od the coordinates system to be able to restore it after my code but it seems that this function return the value you assign as parameter and not the current one. (Note : this is used in a library and I cannot know what the developer used in the main application) Here is my example : myCurrentCoordSystem := XXXXX // Here is the problem ! WCSetCoordinateSystem(True) .. .. .. my code .. .. .. WCSetCoordinateSystem(myCurrentCoordSystem) ...


Object Mix > Programming Languages > Clipper > Current coordinates system value (using WCSetCoordinateSystem function)

Clipper Clipper Programming

Reply

 

LinkBack Thread Tools
  #1  
Old 11-03-2008, 12:23 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Current coordinates system value (using WCSetCoordinateSystem function)

Hi VO'ers,

I need to use the WCSetCoordinateSystem() function with True
parameter to change the coordinates system.

I would like to keep the old value od the coordinates system to
be able to restore it after my code but it seems that this
function return the value you assign as parameter and not the
current one.

(Note : this is used in a library and I cannot know what the
developer used in the main application)

Here is my example :

myCurrentCoordSystem := XXXXX // Here is the problem !

WCSetCoordinateSystem(True)

..
..
..
my code
..
..
..
WCSetCoordinateSystem(myCurrentCoordSystem)


Do you have a tip for it.

TIA,

--
Phil Mermod
Crystal Reports Library for Visual Objects
http://www.pkl.ch/dev/
  #2  
Old 11-03-2008, 01:57 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Current coordinates system value (using WCSetCoordinateSystemfunction)


> WCSetCoordinateSystem(myCurrentCoordSystem)
>
>
> Do you have a tip for it.


A quick search of the VO27 SDK suggests
WCGetCoordinateSystem()
  #3  
Old 11-03-2008, 05:29 PM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Current coordinates system value (using WCSetCoordinateSystemfunction)

Thanks Malcom,

I know that WCSetCoordinateSystem() was an hidden function but
never heard about WCGetCoordinateSystem()

BTW I could guess :-)

Thanks.

--
Phil Mermod
Crystal Reports Library for Visual Objects
http://www.pkl.ch/dev/


Malcolm wrote:

> WCGetCoordinateSystem

  #4  
Old 11-04-2008, 04:52 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Current coordinates system value (using WCSetCoordinateSystemfunction)

Phil Mermod wrote:
>
> Thanks Malcom,
>
> I know that WCSetCoordinateSystem() was an hidden function but
> never heard about WCGetCoordinateSystem()


Does not look to be very hidden in the SDK...


> BTW I could guess :-)
>
> Thanks.
>

  #5  
Old 11-04-2008, 08:09 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Current coordinates system value (using WCSetCoordinateSystemfunction)


I meant it's not listed in the help file.

Thanks.

--
Phil Mermod
Crystal Reports Library for Visual Objects
http://www.pkl.ch/dev/


Malcolm wrote:

> Phil Mermod wrote:
> >
> > Thanks Malcom,
> >
> > I know that WCSetCoordinateSystem() was an hidden function
> > but never heard about WCGetCoordinateSystem()

>
> Does not look to be very hidden in the SDK...
>
>
> > BTW I could guess :-)
> >
> > Thanks.
> >

  #6  
Old 11-07-2008, 04:07 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Current coordinates system value (using WCSetCoordinateSystemfunction)

hi

so what do these two functions do ?

does it mean that we have a topleft as 0,0

richard
  #7  
Old 11-07-2008, 07:03 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Current coordinates system value (using WCSetCoordinateSystemfunction)

Yes.


"richard.townsendrose" <richard.townsendrose@googlemail.com> wrote in
message
news:6cb0c76f-5964-4497-b235-343309b01bdc@v22g2000pro.googlegroups.com:

> hi
>
> so what do these two functions do ?
>
> does it mean that we have a topleft as 0,0
>
> richard



__________ Information from ESET NOD32 Antivirus, version of virus
signature database 3594 (20081107) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


  #8  
Old 11-07-2008, 10:12 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default Re: Current coordinates system value (using WCSetCoordinateSystemfunction)


Yes

--
Phil Mermod
Crystal Reports Library for Visual Objects
http://www.pkl.ch/dev/


richard.townsendrose wrote:

> hi
>
> so what do these two functions do ?
>
> does it mean that we have a topleft as 0,0
>
> richard

Reply

Thread Tools



All times are GMT -5. The time now is 04:58 PM.

Managed by Infnx Pvt Ltd.