PC Review


Reply
Thread Tools Rate Thread

Chr and Chr$

 
 
=?Utf-8?B?Y2xhcmE=?=
Guest
Posts: n/a
 
      12th Jul 2007
Hi all,

What is the difference between the Chr and Chr$ and all other similar pairs?

Clara
--
thank you so much for your help
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      12th Jul 2007
chr or mid or left or... are functions that take variants as arguments.
Variants are inefficient as the function first needs to determine what kind
of varaible it is. By using the dollar sign you are telling the function that
you are passing in a string. This makes the functions more efficient. The
down side is that if you pass in somthing other than a string the function
will bomb...
--
HTH...

Jim Thomlinson


"clara" wrote:

> Hi all,
>
> What is the difference between the Chr and Chr$ and all other similar pairs?
>
> Clara
> --
> thank you so much for your help

 
Reply With Quote
 
=?Utf-8?B?V2lnaQ==?=
Guest
Posts: n/a
 
      12th Jul 2007
Hello Clara

see here with Dick:

http://www.dailydoseofexcel.com/arch...on-efficiency/


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Jim Thomlinson" wrote:

> chr or mid or left or... are functions that take variants as arguments.
> Variants are inefficient as the function first needs to determine what kind
> of varaible it is. By using the dollar sign you are telling the function that
> you are passing in a string. This makes the functions more efficient. The
> down side is that if you pass in somthing other than a string the function
> will bomb...
> --
> HTH...
>
> Jim Thomlinson
>
>
> "clara" wrote:
>
> > Hi all,
> >
> > What is the difference between the Chr and Chr$ and all other similar pairs?
> >
> > Clara
> > --
> > thank you so much for your help

 
Reply With Quote
 
=?Utf-8?B?Q2hhcmxpZQ==?=
Guest
Posts: n/a
 
      12th Jul 2007
I was unaware of the difference so I read further. I think you got it mixed
up. The args are not variants; the returned values are Variant (no $) or
String ($)

"Jim Thomlinson" wrote:

> chr or mid or left or... are functions that take variants as arguments.
> Variants are inefficient as the function first needs to determine what kind
> of varaible it is. By using the dollar sign you are telling the function that
> you are passing in a string. This makes the functions more efficient. The
> down side is that if you pass in somthing other than a string the function
> will bomb...
> --
> HTH...
>
> Jim Thomlinson
>
>
> "clara" wrote:
>
> > Hi all,
> >
> > What is the difference between the Chr and Chr$ and all other similar pairs?
> >
> > Clara
> > --
> > thank you so much for your help

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:50 PM.