1. Need help with procedure

Hi I need help waith a procedure I add to a .e file this command

global procedure load_guy()
sequence t1
object rwalk1, rwalk2, rwalk3, rwalk4, rwalk5
object lwalk1, lwalk2, lwalk3, lwalk4, lwalk5

-- right walk --
t1 = read_bitmap("rwalk1.bmp")
rwalk1 = t1[2]
....... until
end procedure

but when I add it in my main program and specify display_image({x,y},rwalk1)
it says it does not know rwalk1. How do I get around this

Please can somebody help me

Piotr

new topic     » topic index » view message » categorize

2. Re: Need help with procedure

On Thu, 12 Feb 1998, Piotr Dubla wrote:

> Hi I need help waith a procedure I add to a .e file this command
>
-- These objects must also be declared as global for them to be visible
-- outside of the .e file.  They also cannot be inside load_guy().
global object rwalk1, rwalk2, rwalk3, rwalk4, rwalk5
global object lwalk1, lwalk2, lwalk3, lwalk4, lwalk5

> global procedure load_guy()
> sequence t1
>
> -- right walk --
> t1 = read_bitmap("rwalk1.bmp")
> rwalk1 = t1[2]
> ....... until
> end procedure
>
> but when I add it in my main program and specify display_image({x,y},rwalk1)
> it says it does not know rwalk1. How do I get around this
>
> Please can somebody help me
>
> Piotr
>

--
                   _____         _____        _____
    ________      /\    \       /\    \      /\    \
   /   \    \    /  \____\     /  \____\    /  \____\
  /  _  \____\  /   / ___/_   /   /____/   /   / ___/_
 /  / \  |____|/   / /\____\ /    \    \  /   / /\____\
 \  \_/ /    / \   \/ / ___/_\     \    \ \   \/ / ___/_
  \    /____/   \    / /\    \\/\   \    \ \    / /\    \
   \   \    \    \   \/  \____\  \   \    \ \   \/  \____\
    \   \    \    \      /    /   \   \____\ \      /    /
     \   \____\    \    /    /     \  /    /  \    /    /
      \  /    /     \  /    /       \/____/    \  /    /
       \/____/       \/____/xseal at harborside.com\/____/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu