|
-
Aug 2nd, 2009, 02:32 AM
#1
Thread Starter
PowerPoster
[RESOLVED] Print #1, Form14.Controls?
Is this the right syntax to save Form data into an ini file:
Code:
Open App.Path & "\Settings.ini" For Output As #1
Print #1, Form14.Controls
Close #1
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
-
Aug 2nd, 2009, 02:49 AM
#2
Re: Print #1, Form14.Controls?
did you try it?
i am sure it would give an error
try like
vb Code:
for each c in form14.controls print #1, c.name & " = " & c next
if you have controls with no default property this will give an error, but will work correctly for textboxes, labels and some others
for list an combo boxes you may need to loop through all the items, if you want to reload them later
for dynamically created controls or control arrays you may need to save the position and size and index number
really depend on what you are wanting to do with all the controls
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 2nd, 2009, 03:00 AM
#3
Thread Starter
PowerPoster
Re: Print #1, Form14.Controls?
Lol, I just forgot to say. That way would save all of the conrol's data on the Form. Including the Command Buttons and everything else like that. So I am going to Print all of the information that I want to keep and not anything that I don't want to keep. It also is very much quicker than searching for all of the data. Instead I found out that just Printing the Form data, that I want to keep is quicker in deed!!
Thanks for your help!!
I have a huge free products range, of computer software in which you can download using any kind of 64-Bit Web Browser. Also there is coming a Social Networking section that I am making on my Website...
|Ambra Productions Inc. | The Black Sun Society | The Black Shield | Ambra College | Church of the Black Sun | Ambra Productions Inc's Homepage | Boomtick Venues: Ambar Nightclub, Jack Rabbit Slim's, Villa Nightclub and Lucy's Love Shack | Pasta Ambra | Fish Feast Company | Wallet Wizard | Ambrose Liquor | Ambar Tavern | Ambra University | Ambra Cheese |
Do you wish to do unpaid work for me??? If so, the PM me on this Forum, and then we can get to work, programming for the future of computers go by the name of ThEiMp. This is my ghost writers name. Also my nickname, means that I am: The Imperial of the Technology Industry, so then to make it really short, I just then wrote: The Imp, which is where I get the nickname from...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|