Big Problem Please Help

Mar 1, 2010
2
0
Sorry if it's hard to follow it's 2:30 and I've been working for about 30 Hours on the program and just got snagged about 30 mins ago on this.

I am currently in the progress of creating a program that will monitor the ins and outs of golf carts. for instance. When a cart is givin out I will enter the cart number and enter a 1 for out or 0 if it comes in. I also have it set so I can view the status of all the carts at one time. Here is the coding.
To set up the table I used the Set /U C1=0
Set /U C2=0
etc...
To edit I used ESET /U C1=0 and edit accordingly to out 1 or in 0

To display I have it set at
If %C1 = 0 echo Available
If %C1 = 1 echo In Use

Now the problem I have is; when I run to view the list. Lets say I change C1 to 1 so it is in use. When I pull up the display it still says 0 until I exit the whole program and start again. Then it changes.

My question is what do I need to do to update without exiting?
Clear Ram? etc... or A code.
 
May 20, 2008
11,388
99
Syracuse, NY, USA
Why "/U"? That puts the variable into the registry. How about just plain ESET
C1 (or SET C1). That puts the variable into the current environment, which is
readily available to to the program.

On Fri, 05 Mar 2010 02:25:18 -0500, Roxide <> wrote:

|Sorry if it's hard to follow it's 2:30 and I've been working for about 30 Hours on the program and just got snagged about 30 mins ago on this.
|
|I am currently in the progress of creating a program that will monitor the ins and outs of golf carts. for instance. When a cart is givin out I will enter the cart number and enter a 1 for out or 0 if it comes in. I also have it set so I can view the status of all the carts at one time. Here is the coding.
|To set up the table I used the Set /U C1=0
| Set /U C2=0
| etc...
|To edit I used ESET /U C1=0 and edit accordingly to out 1 or in 0
|
|To display I have it set at
|If %C1 = 0 echo Available
|If %C1 = 1 echo In Use
|
|Now the problem I have is; when I run to view the list. Lets say I change C1 to 1 so it is in use. When I pull up the display it still says 0 until I exit the whole program and start again. Then it changes.
|
|My question is what do I need to do to update without exiting?
|Clear Ram? etc... or A code.
|
|
|
|
--
- Vince
 

samintz

Scott Mintz
May 20, 2008
1,501
16
Solon, OH, USA
If your desire is to persist the status in the registry, then using /U
makes sense. Just add the /E switch as well and your current environment
will also be updated.

If the data does not need to be persisted, then just use SET without any
switches.

-Scott

vefatica <> wrote on 03/05/2010 09:28:55 AM:


> Why "/U"? That puts the variable into the registry. How about
justplain ESET

> C1 (or SET C1). That puts the variable into the current environment,
which is

> readily available to to the program.
>
> On Fri, 05 Mar 2010 02:25:18 -0500, Roxide <> wrote:
>
> |Sorry if it's hard to follow it's 2:30 and I've been working for
> about 30 Hours on the program and just got snagged about 30 mins ago on
this.

> |
> |I am currently in the progress of creating a program that will
> monitor the ins and outs of golf carts. for instance. When a cart is
> givin out I will enter the cart number and enter a 1 for out or 0 if
> it comes in. I also have it set so I can view the status of all the
> carts at one time. Here is the coding.
> |To set up the table I used the Set /U C1=0
> | Set /U C2=0
> | etc...
> |To edit I used ESET /U C1=0 and edit accordingly to out 1 or in 0
> |
> |To display I have it set at
> |If %C1 = 0 echo Available
> |If %C1 = 1 echo In Use
> |
> |Now the problem I have is; when I run to view the list. Lets say I
> change C1 to 1 so it is in use. When I pull up the display it still
> says 0 until I exit the whole program and start again. Then it changes.
> |
> |My question is what do I need to do to update without exiting?
> |Clear Ram? etc... or A code.
> |
> |
> |
> |
> --
> - Vince
>
>
>
>
 
Similar threads
Thread starter Title Forum Replies Date
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
B Asking for a big favor Support 4
M Little bug, big consequences .. Support 6
vefatica Big numbers, strange errors Support 1
rconn Big storms, no electricity at JP Software Support 6
vefatica Big collection of MSI files Support 3
Dick Johnson Weird Color Problem Support 8
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2

Similar threads