Difference between $ and .s ?
Difference between $ and .s ?
Someone just told me that there was a difference between
mystring$ and mystring.s
Can someone smack me around with a clue stick? Either I've overlooked it in the docs or the difference isn't in there..
Thanks!
mystring$ and mystring.s
Can someone smack me around with a clue stick? Either I've overlooked it in the docs or the difference isn't in there..
Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Another difference is that this is allowed
But this is not
Code: Select all
A$ = "Hello"
A.l = 5
Code: Select all
A.s = "Hello"
A.l = 5
Thanks guys 
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
-
matthew180
- User

- Posts: 64
- Joined: Mon Jun 30, 2003 5:36 pm
- Location: Michigan
- Contact:
The $ and .s internal variable spaces are not the same.
a$ = "Hello"
a.s = "World"
debug a$
debug a.s
Output:
Hello
World
You would *expect* the result to be:
World
World
Seems the $ is just like the * is to pointers, i.e. is becomes part of the variable name and not really any sort of operator. Once you define a pointer, you have to always use the * with the name, same with the $ for strings.
Now, as for the difference between variables defined with a $ or .s, unfortunately only Fred can tell you that...
Matthew
a$ = "Hello"
a.s = "World"
debug a$
debug a.s
Output:
Hello
World
You would *expect* the result to be:
World
World
Seems the $ is just like the * is to pointers, i.e. is becomes part of the variable name and not really any sort of operator. Once you define a pointer, you have to always use the * with the name, same with the $ for strings.
Now, as for the difference between variables defined with a $ or .s, unfortunately only Fred can tell you that...
Matthew
Exxxxxcellent. Thanks Fred.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
-
freedimension
- Enthusiast

- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:



