On Jul 20, 2006, at 4:24 PM, [EMAIL PROTECTED] wrote:

is there any quick way to get rid of unnecesary declarations? Suppose I have dim a, b, c, d, e, f, g, h, i, j, k, ,l, m, n, o , p , q, r, s, t, u, v,
w, x as integer
but I am only using a, j, p and v, and there are several pages of code per
method and hundreds of methods.

One of my person favorite reasons to NOT declare multiple variables per line like this.
It makes many things harder than they need to be.
If this were

        dim a as integer
        dim b as integer
        dim c as integer
        dim d as integer
        dim e as integer
        dim f as integer
        dim g as integer
        dim h as integer
        dim i as integer
        dim j as integer
        dim k as integer
        dim l as integer
        dim m as integer
        dim n as integer
        dim o as integer
        dim p as integer
        dim q as integer
        dim r as integer
        dim s as integer
        dim t as integer
        dim u as integer
        dim v as integer
        dim w as integer
        dim x as integer

changing
        b to a string
        c to a double
        d to a memoryblock
        and f, g , q, and t to cFoo
is easy as are subsequent changes. With it all one one line it's a hassle each time a change is needed

And finding out what is used is as simple as comment them all out and recompile and uncomment the ones that the compiler complains about. The rest remain commented out


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to