Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EditBox Dlgupdate

Status
Not open for further replies.

hankm3

Programmer
Jan 27, 2002
284
US
Hi,
Must be doing something Stupid and can't See it.

Globals:
string Count
string Status

Using one EditBox to Show a Line Count in a File. And another EditBox as a Status Display. I use a BoxReset Proc to change the

When I Reset the Variables back to $NULLSTR or "" the Dlgupdate does not work and the EditBox's Never CLEARS. But if I rerun the Script, the Counts and Status Fields do Update. The Script stays Open until an EXIT Button is Pressed !

I want to CLEAR the COUNT and STATUS EditBoxes when the Reset Button is Pressed.

Example:
proc BoxReset

Count = $NULLSTR
Status = $NULLSTR
dlgupdate 0 24 26

endproc

Any Ideas ??

Thanks


 
Are you sure that the BoxReset procedure is being called when you think it is being called? Try sticking a usermsg or statmsg command in the procedure and see if you see that command fire. Also doublecheck that you have the correct dialog and control IDs in the procedure.

Is BoxReset called at the beginning of your script, or just when the Reset button is pushed?
 
Knob,
Rechecked the BoxReset Procedure again, and noticed that I had left in 2 lines that should never have been used. Stupid me.

proc BoxReset
;string Count = $NULLSTR ;* Problem 1
;string Status = $NULLSTR ;* Problem 2
FListBoxSelect = $NULLSTR
SDLBSelect = $NULLSTR
SDPath = $NULLSTR
DDPath = $NULLSTR
Count = $NULLSTR
Status = $NULLSTR
dlgupdate 0 2 5
dlgupdate 0 17 18
dlgupdate 0 24
dlgupdate 0 26
endproc

Commented out the Redefine statements and everything works fine.

Thanks for the Jolt !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top