declaring and using VB Strings of different fixed sizes. e.g.: using 'dim afixedlengthstring as string as 12' within VB.

  • Thread starter Thread starter skiutah1
  • Start date Start date
S

skiutah1

Guest
I do remember programming in vb6, where I could make many different fixed length VB strings, without running into this error called: "End of Statement expected". Saying that I have used vb6 before dates me, of which is true. I have used vb6 and enjoyed it.

By using this "old" vb template(Dim fixedstring1 as string as 12), I could make many different fixed length strings quite easily, whether in a structure or independently.

With using the MSVC 2010 VB environment, I'm always running into the error: "End of Statement expected" when/where I'm using this "old" vb template(Dim fixedstring1 as string as 12). I do have access to a full MSVC 2017 environment. Would using this 2017 vb environment be much better, and get rid of this error of "End of Statement expected"??

Yet, I could change this '12' to be a different number; thus creating many other different fixed length strings. Currently, I have developed a "C"/C++ program/DLL that uses fixed strings of 12 characters as vehicles. These "vehicles" contains data that is passed to many other "C"/C++ routines to do certain process' and also these "vehicles" are also passed, carrying data from this/my vb program(if I can get my vb program working and running) to my "C"/C++ routines and back.

Therefore, I respectfully ask for some help in getting over these problemsome hurtles. And is there someone who could help me get thru it. If someone wants to know what my project is, just ask and I'll tell. Many thanks in advance.

Thad T.

Nov 24th, 2019

RSVP Please...

Continue reading...
 
Back
Top