output as text file in VB 6.0
Posted on 2003-02-19
I'm a mechanical engineer working with CAD/CAE packages. I'm working with VB to customize one of my applications. By a simple vb program i need to create a macro file, which will run in my CAD software. the CAD macro consists of 90 lines. Only in few places few numbers will vary. for that, i made a form by which, i can get 10 variable values(assume a1,a2,..a10). here are my questions...
1. I need to create a sentence in output which will be like this:"ASK_ITEM 102 (1 REAL) = 5.1", here the variable will hold the value "5.1"
2. The output of the program should be "shaft.macro" in the location d:\backup\shaft\...
note: the macro is nothing but a txt file.
I'm very beginner to vb. So please give me the source codes or let me know where I can get the source code.
Thanks in advance