gelo
Member
- Joined
- Sep 24, 2007
- Messages
- 13
- Programming Experience
- 1-3
heyo new here,
ive been writing a program to edit a special file that is a text based mesh file. In the program i want to make a special replace feature. ive tried so many times but to no avail...
im useing visual basic express 2005
When i get my prog to search for the substring "material="#"" (# = any number including -1)in multiple strings,
i want the first material="#" its found to be changed to material="0",
and the second material="#" its found to be changed to material="1"
and the third material="#" its found to be changed to material="2" and so on and so forth
all this is done via a button on a separate form. the material="#" is in a richtextbox in the main form
if you can get my gist lol, is it possible to do that? if you thought of any code i would be so greatfull for it. with the help youve supplied this site will be referenced in the help box including the person with the code that works.
THANKS!
ive been writing a program to edit a special file that is a text based mesh file. In the program i want to make a special replace feature. ive tried so many times but to no avail...
im useing visual basic express 2005
When i get my prog to search for the substring "material="#"" (# = any number including -1)in multiple strings,
i want the first material="#" its found to be changed to material="0",
and the second material="#" its found to be changed to material="1"
and the third material="#" its found to be changed to material="2" and so on and so forth
all this is done via a button on a separate form. the material="#" is in a richtextbox in the main form
if you can get my gist lol, is it possible to do that? if you thought of any code i would be so greatfull for it. with the help youve supplied this site will be referenced in the help box including the person with the code that works.
THANKS!
Last edited: