john-86
03-09-2006, 05:38 AM
Hello all,
I'm afraid I may be making a few postings on this forum over the next few days as I continue to develop my application (which seems to be getting more complex by the day!).
The first language I learned properly (bar some COMOL in highschool) was JavaScript. I (maybe wrongly) try and relate methods and properties in JS to VBA. I was wondering if there was a VBA equivalent of the JS charAt() property.
For those of you who may be unfamiliar with JS I'll try and explain with a demo.
If we declare a string variable called "str" and assign it the value of "bread" then str.charAt(0) would return "b". Each character in the string is indexed (using 0-indexing) so each character within a string can be referenced.
Sorry if I haven't explained this very well. If anyone would like me to try again please don't hesitate to ask.
Any help with this would, again, be greatly appreciated.
Kind regards,
John
I'm afraid I may be making a few postings on this forum over the next few days as I continue to develop my application (which seems to be getting more complex by the day!).
The first language I learned properly (bar some COMOL in highschool) was JavaScript. I (maybe wrongly) try and relate methods and properties in JS to VBA. I was wondering if there was a VBA equivalent of the JS charAt() property.
For those of you who may be unfamiliar with JS I'll try and explain with a demo.
If we declare a string variable called "str" and assign it the value of "bread" then str.charAt(0) would return "b". Each character in the string is indexed (using 0-indexing) so each character within a string can be referenced.
Sorry if I haven't explained this very well. If anyone would like me to try again please don't hesitate to ask.
Any help with this would, again, be greatly appreciated.
Kind regards,
John