sign in • sign up
web | myLot | discussions | blogs | news | photos
homeinterestsdiscussionsblogsnewsmessages friendsphotosearningsmyLot

vb help! email this discussion to a friend?

myLot reputation of 81/100. superx (658)   ranked 333 out of 2,484 in computers1 year ago

HI Mylotters!

First of all i am not a "PROFESSIONAL PROGRAMMER" i use VB just for fun and to make some mini programmes i need some help from VB users!
1) How can i write some value to a text file
e.g suppose the variable X has the value of 5 i want to write that value to a text file How can i do so .?
2) how can i take a value from one form to another form
e.g i have a value of X=8 in form1 now i want to take it to form2 ..?

 
 
computers
sponsors
Visual Basic
Browse a huge selection now. Find exactly what you want today.
www.ebay.com

Visual Basic Numerical Class Libraries
Matrix, vector, decompositions, integration, statistics. Interface to Blas and Lapack. Free trial.
www.centerspace.net

Email VB ActiveX Control
Send HTML e-mails with images! Powerful, reliable, great support.
www.traysoft.com

User has not selected a best response.
tags:  vb, help, programming, visual basic, former question
 
1. pedowii (36)   ranked 776 out of 2,484 in computers   1 year ago

Have you got a MSDN library? You can get many useful information there.
Here is an example:
open "C:\date.txt" for output as #1
print #1,X
close #1


myLot reputation of 81/100. superx (658)   ranked 333 out of 2,484 in computers  1 year ago

Hi!

It always say" You don't have MSDN installed "

Anyways thanks for the response!

Visual Basic Browse a huge selection now. Find exactly what you want today. www.ebay.com
 
2. myLot reputation of 91/100. repzkoopz (923)   ranked 253 out of 2,484 in computers   1 year ago

i'll just give you a sample..

for #1:
*******************
Open filename For Output Lock Read Write As #1
Print #1, x
Close #1
*******************

for #2:
it would be easier to make x a global value.
initialize it as public.
*******************
Public x
*******************


myLot reputation of 81/100. superx (658)   ranked 333 out of 2,484 in computers  1 year ago

Hi!

Hmm seems easy! I'll try it!

Thanks for the response!


myLot reputation of 91/100. repzkoopz (923)   ranked 253 out of 2,484 in computers  1 year ago

no prob. c",)
feel free to ask again.. c',)

Visual Basic Numerical Class Libraries Matrix, vector, decompositions, integration, statistics. Interface to Blas and Lapack. Free trial. www.centerspace.net
 
sponsors
Instructor-Led VB and VB.NET Training
Visual Basic and Visual Basic.NET courses. Intro and advanced classes.
www.traininghott.com

Buy Visual Basic .NET 2003 Software
Full Genuine Retail Version. Order it Now. Guarantee in Stock.
www.allstar-retail.com

Programming Visual Basic
Everything to do with Visual Basic items.
shopping.Yahoo.com

similar discussions
URGENT!!! Need Help on VB.NET
guys, i have a problem here and need to solve it asap. i using vb.net to program an application...
System Programmer!
System Programmer! Nice to hear from others that they call you a programmer! but to be a programmer...
Delphi, VB clone?
Hey there guys, I have noticed that Delphi, is somewhat like VB, not exactly same alike, but mostly...
How can I be graduate in the computer science?
Since I have great interest in computer but the knowledge is limited so some one gve me idea about...
How many follow Gandhism??
Gandhism means following principles of Gandhi...
sponsors
Instructor-Led VB and VB.NET Training
Visual Basic and Visual Basic.NET courses. Intro and advanced classes.
www.traininghott.com
Buy Visual Basic .NET 2003 Software
Full Genuine Retail Version. Order it Now. Guarantee in Stock.
www.allstar-retail.com
Programming Visual Basic
Everything to do with Visual Basic items.
shopping.Yahoo.com
Error 339 Visual Basic
Free Download: Error 339 Visual Repair Tool. 100% Safe & Guaranteed.
Error339Visual.FreshPCFix.com
office answering services
Practical Advices for Consumers About office answering services.
CallAnsweringServices.net