Re: dll.e error while doing tcp stuff

new topic     » goto parent     » topic index » view thread      » older message » newer message

duke normandin wrote:
> worked OK except for squaking about:
> 
> Warning: local constant txt1 in MyIPAddr.exw is not used
> Warning: local constant txt2 in MyIPAddr.exw is not used
> 
> as in:
> 
>    txt1 = create(LText, "IP Address:", Win, 5, 5, 54, 20, 0),
>    txt2 = create(LText, "Computer name:", Win, 5, 25, 77, 20, 0),
> 
> How do I get rid of the messages?

Being lazy, I usually just add
if txt1 or txt2 then end if -- suppress warnings


The better answer is to change it from say:
constant Win=create(),
         blah=create(),
         txt1=create(),
         txt2=create(),
         blah=create()

to:
constant Win=create(),
         blah=create()
         VOID=create()
         VOID=create()
constant blah=create()

Watch those commas, you'll need to remove 3 of them.
Obviously, if you just start deleting create statements, things will have gone
missing from the screen when you run it.

Regards,
Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu