I save some data to an array in my program. I can reopen the setting
screen and see that the data is, in fact, in the array.
I then do a lot of these:
My.Settings.Brk r1 = BreakerAmps(1)
My.Settings.Brk r2 = BreakerAmps(2)
My.Settings.Brk r3 = BreakerAmps(3)
My.Settings.Brk r4 = BreakerAmps(4)
My.Settings.Brk r5 = BreakerAmps(5)
then I do a: My.Settings.Sav e
after all of the My.Settings commands and exit the program.
On the way in next time, I do:
BreakerAmps(1) = CInt(My.Setting s.Brkr1)
BreakerAmps(2) = CInt(My.Setting s.Brkr2)
BreakerAmps(3) = CInt(My.Setting s.Brkr3)
BreakerAmps(4) = CInt(My.Setting s.Brkr4)
BreakerAmps(5) = CInt(My.Setting s.Brkr5)
and when I get to my settings screen, they are back to the default that
was entered when I set up the settings entries by hand.
I tried doing a My.Settings.Rel oad during the invocation just in case
but it made no different.
Ideas?
Where can I see the "persistent " values so help find the problem area.
My MSDN help is still broken via the VS help system. Says it is down
(does not seem to be) or my User/PW is broken (but does not let me
reenter it) so getting help got just that much harder and it was already
hard enough!
Mike Morrow
MMSA00E62537 7 3309
Mike,
In this millenium there is more than Atari programming. The mySettings are
based on all kind of data in the computer.
By instance the XML config file. It is not just simple a piece of memory
that you withouth having allocated can use.
Cor
<Ju********@hom e.netschreef in bericht
news:r1******** *************** *********@4ax.c om...
>I save some data to an array in my program. I can reopen the setting
screen and see that the data is, in fact, in the array.
I then do a lot of these:
My.Settings.Brk r1 = BreakerAmps(1)
My.Settings.Brk r2 = BreakerAmps(2)
My.Settings.Brk r3 = BreakerAmps(3)
My.Settings.Brk r4 = BreakerAmps(4)
My.Settings.Brk r5 = BreakerAmps(5)
then I do a: My.Settings.Sav e
after all of the My.Settings commands and exit the program.
On the way in next time, I do:
BreakerAmps(1) = CInt(My.Setting s.Brkr1)
BreakerAmps(2) = CInt(My.Setting s.Brkr2)
BreakerAmps(3) = CInt(My.Setting s.Brkr3)
BreakerAmps(4) = CInt(My.Setting s.Brkr4)
BreakerAmps(5) = CInt(My.Setting s.Brkr5)
and when I get to my settings screen, they are back to the default that
was entered when I set up the settings entries by hand.
I tried doing a My.Settings.Rel oad during the invocation just in case
but it made no different.
Ideas?
Where can I see the "persistent " values so help find the problem area.
My MSDN help is still broken via the VS help system. Says it is down
(does not seem to be) or my User/PW is broken (but does not let me
reenter it) so getting help got just that much harder and it was already
hard enough!
Mike Morrow
MMSA00E62537
I found out what is happening.
When you copy code around to clean things up a little bit and get stuff
that is similar, together, (refactoring, sorta) VB loses the Handles
clauses. They simply vanish. It has happened several times to me and
this time, it happened on the form close and it was not running to save
the values. I put it back in and now the routine runs and I save the
data.
Don't say I forgot to copy it. I copied the Sub command and the code
and the Handles is right inline with it. I could not miss copying it
when I move a whole routine but at the destination, the Handles is
missing and I missed noticing that it had gone away.
Settings is not "working" since the routine to drive it is back.
I hope someone fixes that little problem soon.
Mike
On Mon, 30 Jun 2008 05:31:28 +0200, in
microsoft.publi c.dotnet.langua ges.vb "Cor Ligthert[MVP]"
<no************ @planet.nlwrote :
>Mike,
In this millenium there is more than Atari programming. The mySettings are based on all kind of data in the computer.
By instance the XML config file. It is not just simple a piece of memory that you withouth having allocated can use.
Cor
<Ju********@ho me.netschreef in bericht news:r1******* *************** **********@4ax. com...
>>I save some data to an array in my program. I can reopen the setting screen and see that the data is, in fact, in the array.
I then do a lot of these:
My.Settings.Br kr1 = BreakerAmps(1) My.Settings.Br kr2 = BreakerAmps(2) My.Settings.Br kr3 = BreakerAmps(3) My.Settings.Br kr4 = BreakerAmps(4) My.Settings.Br kr5 = BreakerAmps(5)
then I do a: My.Settings.Sav e
after all of the My.Settings commands and exit the program.
On the way in next time, I do:
BreakerAmps( 1) = CInt(My.Setting s.Brkr1) BreakerAmps( 2) = CInt(My.Setting s.Brkr2) BreakerAmps( 3) = CInt(My.Setting s.Brkr3) BreakerAmps( 4) = CInt(My.Setting s.Brkr4) BreakerAmps( 5) = CInt(My.Setting s.Brkr5)
and when I get to my settings screen, they are back to the default that was entered when I set up the settings entries by hand.
I tried doing a My.Settings.Rel oad during the invocation just in case but it made no different.
Ideas?
Where can I see the "persistent " values so help find the problem area.
My MSDN help is still broken via the VS help system. Says it is down (does not seem to be) or my User/PW is broken (but does not let me reenter it) so getting help got just that much harder and it was already hard enough!
Mike Morrow MMSA00E62537 Ju********@home .net wrote:
I found out what is happening.
I hope someone fixes that little problem soon.
Mike
I've posted the following code at earlier times, and I'll list it again,
it will fix your problem -
1. Create a new setting, such as "SettingsVa lid" and set its default
value to False. (This is important!)
2. Place the following code at the beginning of your Form_Load event -
If Not My.Settings.Set tingsValid Then
My.Settings.Upg rade()
My.Settings.Set tingsValid = True
My.Settings.Sav e()
End If
Hope this helps.
ShaneO
There are 10 kinds of people - Those who understand Binary and those who
don't.
Mike,
That is no problem, the problem is that you are meshing up with the code.
You can cut it and set it on another place, but how would be known which of
the exact equal event methode should be taken as you copy it. Be happy that
it is not deleted from the original one too.
However, I am curious how you think that you can refactor code as you don't
even know the basics?
Cor
<Ju********@hom e.netschreef in bericht
news:sd******** *************** *********@4ax.c om...
>I found out what is happening.
When you copy code around to clean things up a little bit and get stuff
that is similar, together, (refactoring, sorta) VB loses the Handles
clauses. They simply vanish. It has happened several times to me and
this time, it happened on the form close and it was not running to save
the values. I put it back in and now the routine runs and I save the
data.
Don't say I forgot to copy it. I copied the Sub command and the code
and the Handles is right inline with it. I could not miss copying it
when I move a whole routine but at the destination, the Handles is
missing and I missed noticing that it had gone away.
Settings is not "working" since the routine to drive it is back.
I hope someone fixes that little problem soon.
Mike
On Mon, 30 Jun 2008 05:31:28 +0200, in
microsoft.publi c.dotnet.langua ges.vb "Cor Ligthert[MVP]"
<no************ @planet.nlwrote :
>>Mike,
In this millenium there is more than Atari programming. The mySettings are based on all kind of data in the computer.
By instance the XML config file. It is not just simple a piece of memory that you withouth having allocated can use.
Cor
<Ju********@h ome.netschreef in bericht news:r1****** *************** ***********@4ax .com...
>>>I save some data to an array in my program. I can reopen the setting screen and see that the data is, in fact, in the array.
I then do a lot of these:
My.Settings.B rkr1 = BreakerAmps(1) My.Settings.B rkr2 = BreakerAmps(2) My.Settings.B rkr3 = BreakerAmps(3) My.Settings.B rkr4 = BreakerAmps(4) My.Settings.B rkr5 = BreakerAmps(5)
then I do a: My.Settings.Sav e
after all of the My.Settings commands and exit the program.
On the way in next time, I do:
BreakerAmps(1 ) = CInt(My.Setting s.Brkr1) BreakerAmps(2 ) = CInt(My.Setting s.Brkr2) BreakerAmps(3 ) = CInt(My.Setting s.Brkr3) BreakerAmps(4 ) = CInt(My.Setting s.Brkr4) BreakerAmps(5 ) = CInt(My.Setting s.Brkr5)
and when I get to my settings screen, they are back to the default that was entered when I set up the settings entries by hand.
I tried doing a My.Settings.Rel oad during the invocation just in case but it made no different.
Ideas?
Where can I see the "persistent " values so help find the problem area.
My MSDN help is still broken via the VS help system. Says it is down (does not seem to be) or my User/PW is broken (but does not let me reenter it) so getting help got just that much harder and it was already hard enough!
Mike Morrow MMSA00E6253 7
<Ju********@hom e.netschrieb:
>I save some data to an array in my program. I can reopen the setting
screen and see that the data is, in fact, in the array.
I then do a lot of these:
My.Settings.Brk r1 = BreakerAmps(1)
My.Settings.Brk r2 = BreakerAmps(2)
My.Settings.Brk r3 = BreakerAmps(3)
My.Settings.Brk r4 = BreakerAmps(4)
My.Settings.Brk r5 = BreakerAmps(5)
then I do a: My.Settings.Sav e
after all of the My.Settings commands and exit the program.
On the way in next time, I do:
BreakerAmps(1) = CInt(My.Setting s.Brkr1)
BreakerAmps(2) = CInt(My.Setting s.Brkr2)
BreakerAmps(3) = CInt(My.Setting s.Brkr3)
BreakerAmps(4) = CInt(My.Setting s.Brkr4)
BreakerAmps(5) = CInt(My.Setting s.Brkr5)
and when I get to my settings screen, they are back to the default that
was entered when I set up the settings entries by hand.
Make sure the settings are /user/ settings and not /application/ settings.
Only user settings can be saved.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"Cor Ligthert[MVP]" wrote:
However, I am curious how you think that you can refactor code as you don't
even know the basics?
Cor
What a rude and unhelpful reply!
--
David Streeter
Synchrotech Software
Sydney Australia
What a rude and unhelpful reply!
>
Did you understand it?
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Isaac Grover |
last post by:
Hi everyone,
Just out of curiosity I recently pointed one of my hand-typed pages at the W3
Validator, and my hand-typed code was just ripped to shreds. Then I pointed
some major sites (microsoft.com, cnn.com, etc.) at the W3 Validator; to my
surprise none of them passed.
Doesn't anyone care anymore, or are the standards more-or-less looked at as
guidlines for web design?
|
by: vic |
last post by:
My manager wants me to develop a search program, that would work like they
have it at edorado.com.
She made up her requirements after having compared how search works at
different websites, like eBay, Yahoo and others.
This is what she wants my program to be able to do:
(try this test at different websites just for fun).
At eBay:
- enter the word 'television' in a search field à you will get 2155 items.
|
by: Danny Lesandrini |
last post by:
I'm using an Access database to drive a web site and the
colors of various table backgrounds are stored in Access.
I want users of the Access database to be able to select
colors for the site, but my mappings between named colors,
HEX values and the Long Integer values used in Access are
not jibbing. Anyone have a nice list laying around?
Danny J Lesandrini
dlesandrini@hotmail.com
|
by: ricolee99 |
last post by:
Hi everyone,
I'm trying to invoke my .exe application from a remote server. Here is
the code:
ManagementClass processClass = new ManagementClass ("\\\\"
+"RemoteServerName"
+
"\\root\\CIMV2:Win32_Process");
|
by: Jim Hubbard |
last post by:
I am downloading the REALbasic 5.5 demo and was just wondering if anyone
else had tried it.
I am tired of Microsoft constantly changing things and breaking backward
compatibility ON PURPOSE.
I'd like to offer my customers the ability to run my apps on Windows, MAC or
Linux - and REALbasic claims the ability to do that from one set of source
code.
| |
by: Jim |
last post by:
I'm trying to use the Application Settings option in VS2005 with C#. So
far I've no success getting my settings to save or load. Various
tutorials on the 'net seem to be outdated.
Even MSDN's info seems to be incorrect regarding the act of accessing
saved settings. They say a "Settings" object is used to access them but
I have no access to such an object (It's called My.Settings in vb).
Anyone know the low-down on this? Any helpful...
|
by: shapper |
last post by:
Hello,
I want to create an ordered list where each list item can have various
controls:
<ol>
<li>textbox, label, ...</li>
...
</ol>
|
by: Protoman |
last post by:
I've written this program that simulates a 36 character, 10 rotor
reciprocal rotor cipher, w/ a plugboard. Any way I can make the
plugboard function more compact and/or be able to change the mapping
at runtime?
char Enigma::plugboard(char Char)
{
if(Char=='A')
return '0';
else if(Char=='B')
|
by: Anonymous |
last post by:
On MS site: http://msdn2.microsoft.com/en-us/library/esew7y1w(VS.80).aspx
is the following garbled rambling:
"You can avoid exporting classes by defining a DLL that defines a class
with virtual functions, and functions you can call to instantiate and
delete objects of the type. You can then just call virtual functions on
the type."
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |