Results 1 to 2 of 2

Thread: Variable Scoping

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    5

    Post

    Is there a way where I can make a variable visible to some procedures while making it invisible to some ?

    e.g. three procedures


    proc 1
    proc2
    proc3

    and variable x

    proc1 and proc2 can 'see' (i.e. modify the contents, read it etc) it but not proc3


    Thanks.

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    Define x as Private in a form and place proc1 and proc2 in the same form. Put proc3 in a diferent form or module.

    ------------------
    Marty
    COGITO EGGO SUM
    I think; therefore I am a waffle.

    [This message has been edited by MartinLiss (edited 01-30-2000).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width