473,394 Members | 1,701 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Visual Basic v6


Yes I know I am using antiquated software but time contraints and $$
disallow me from "doing the right thing".

I am a bit of a beginner here but need to know a few things and will
start with this.

I need to get a value into a variable that is in a variable. Does this
make sense?

I have a bit of coding where I need to write 45 variables to an
external file from 2500+ records.

I am using the following code (I am probably missing the bus here thogh
....???
Do

num_Field = 0

For i = 0 To 4
numchar_Field = num_Field
mDataVariable = "rstRecordSet.Fields(" & numchar_Field & ")"
r = "mDataVariable" & numchar_Field
num_Field = num_Field + 1
'then I populate the field with data
Next i
objTextStream.WriteLine _
mDataVariable0 & mDataVariable1 & mDataVariable2 & mDataVariable3 & _
mDataVariable4 & mDataVariable5 & mDataVariable6 & mDataVariable7 & _
mDataVariable8 & mDataVariable9 & mDataVariable10 & mDataVariable11 &
_
mDataVariable12 & mDataVariable13 & mDataVariable14 & mDataVariable15
& _
mDataVariable16 & mDataVariable17 & mDataVariable18 & mDataVariable19
& _
mDataVariable20 & mDataVariable21 & mDataVariable22 & mDataVariable23
& _
mDataVariable24 & mDataVariable25 & mDataVariable26 & mDataVariable27
& _
mDataVariable28 & mDataVariable29 & mDataVariable30 & mDataVariable31
& _
mDataVariable32 & mDataVariable33 & mDataVariable34 & mDataVariable35
& _
mDataVariable36 & mDataVariable37 & mDataVariable38 & mDataVariable39
& _
mDataVariable40 & mDataVariable41 & mDataVariable42 & mDataVariable43
& _
mDataVariable44
rstRecordSet.MoveNext

Loop Until rstRecordSet.EOF = True

--
GaryMan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 19 '05 #1
2 979
> Yes I know I am using antiquated software but time contraints and $$
disallow me from "doing the right thing".
It's not a matter of what technology you're using, but what newsgroup you're
asking your question in. This is an ASP.Net newsgroup, and VB6 is not a part
of the .Net platform, or ASP.Net. Try the following newsgroup:

microsoft.public.vb.general.discussion

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"GaryMan" <Ga************@mail.codecomments.com> wrote in message
news:Ga************@mail.codecomments.com...
Yes I know I am using antiquated software but time contraints and $$
disallow me from "doing the right thing".

I am a bit of a beginner here but need to know a few things and will
start with this.

I need to get a value into a variable that is in a variable. Does this
make sense?

I have a bit of coding where I need to write 45 variables to an
external file from 2500+ records.

I am using the following code (I am probably missing the bus here thogh
..???
Do

num_Field = 0

For i = 0 To 4
numchar_Field = num_Field
mDataVariable = "rstRecordSet.Fields(" & numchar_Field & ")"
r = "mDataVariable" & numchar_Field
num_Field = num_Field + 1
'then I populate the field with data
Next i
objTextStream.WriteLine _
mDataVariable0 & mDataVariable1 & mDataVariable2 & mDataVariable3 & _
mDataVariable4 & mDataVariable5 & mDataVariable6 & mDataVariable7 & _
mDataVariable8 & mDataVariable9 & mDataVariable10 & mDataVariable11 &
_
mDataVariable12 & mDataVariable13 & mDataVariable14 & mDataVariable15
& _
mDataVariable16 & mDataVariable17 & mDataVariable18 & mDataVariable19
& _
mDataVariable20 & mDataVariable21 & mDataVariable22 & mDataVariable23
& _
mDataVariable24 & mDataVariable25 & mDataVariable26 & mDataVariable27
& _
mDataVariable28 & mDataVariable29 & mDataVariable30 & mDataVariable31
& _
mDataVariable32 & mDataVariable33 & mDataVariable34 & mDataVariable35
& _
mDataVariable36 & mDataVariable37 & mDataVariable38 & mDataVariable39
& _
mDataVariable40 & mDataVariable41 & mDataVariable42 & mDataVariable43
& _
mDataVariable44
rstRecordSet.MoveNext

Loop Until rstRecordSet.EOF = True

--
GaryMan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 19 '05 #2
Future posting by about 2 hours didn't help either.

I have a rule against answering future-posted messages.
No time for silly kiddie I-need-attention posts.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eE**************@TK2MSFTNGP14.phx.gbl...
Yes I know I am using antiquated software but time contraints and $$
disallow me from "doing the right thing".


It's not a matter of what technology you're using, but what newsgroup
you're asking your question in. This is an ASP.Net newsgroup, and VB6 is
not a part of the .Net platform, or ASP.Net. Try the following newsgroup:

microsoft.public.vb.general.discussion

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"GaryMan" <Ga************@mail.codecomments.com> wrote in message
news:Ga************@mail.codecomments.com...

Yes I know I am using antiquated software but time contraints and $$
disallow me from "doing the right thing".

I am a bit of a beginner here but need to know a few things and will
start with this.

I need to get a value into a variable that is in a variable. Does this
make sense?

I have a bit of coding where I need to write 45 variables to an
external file from 2500+ records.

I am using the following code (I am probably missing the bus here thogh
..???
Do

num_Field = 0

For i = 0 To 4
numchar_Field = num_Field
mDataVariable = "rstRecordSet.Fields(" & numchar_Field & ")"
r = "mDataVariable" & numchar_Field
num_Field = num_Field + 1
'then I populate the field with data
Next i
objTextStream.WriteLine _
mDataVariable0 & mDataVariable1 & mDataVariable2 & mDataVariable3 & _
mDataVariable4 & mDataVariable5 & mDataVariable6 & mDataVariable7 & _
mDataVariable8 & mDataVariable9 & mDataVariable10 & mDataVariable11 &
_
mDataVariable12 & mDataVariable13 & mDataVariable14 & mDataVariable15
& _
mDataVariable16 & mDataVariable17 & mDataVariable18 & mDataVariable19
& _
mDataVariable20 & mDataVariable21 & mDataVariable22 & mDataVariable23
& _
mDataVariable24 & mDataVariable25 & mDataVariable26 & mDataVariable27
& _
mDataVariable28 & mDataVariable29 & mDataVariable30 & mDataVariable31
& _
mDataVariable32 & mDataVariable33 & mDataVariable34 & mDataVariable35
& _
mDataVariable36 & mDataVariable37 & mDataVariable38 & mDataVariable39
& _
mDataVariable40 & mDataVariable41 & mDataVariable42 & mDataVariable43
& _
mDataVariable44
rstRecordSet.MoveNext

Loop Until rstRecordSet.EOF = True

--
GaryMan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: pix | last post by:
Hello, I would like to start learning Visual Basic, and I was wondering if there are any recomendations to any ebooks, or actual books for that matter. I have my eye on this book by John Smiley,...
2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
2
by: frossberg | last post by:
Hello! I tried to install the Visual Basic.NET Resource Kit (http://msdn.microsoft.com/vbasic/vbrkit/) but obviously something went very wrong and now it sems impossible both to repair and to...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
4
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
4
by: Chris Asaipillai | last post by:
Hi there My compay has a number of Visual Basic 6 applications which are front endeed onto either SQL Server or Microsoft Access databases. Now we are in process of planning to re-write these...
11
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I have seen the terms Visual Basic 2005 and VB.NET. It seems that sometimes they seem to be referring to the same thing but sometimes they are not. I also run into terms like VB9 and VB10.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.