Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

type and end type

38 views
Skip to first unread message

Jamie

unread,
Jan 23, 2014, 2:29:23 AM1/23/14
to
Hi guys - I was recently exposed to PowerBuilder and was told to familiarize myself with it. I am currently reading through some Powerscripts. As much as I understand most of it - there are some which I am not getting. So I am asking here in hopes of getting some answers.

Note: As I am not sure what is the commenting convention in Powerscript I have used what I have been using for other languages. In those comments is my understanding of the code, do correct me if I am wrong.

/***
Declaring within this forward statement -
it is something like a function prototype
***/
forward
/***
Declaring a global variable type - game_code - from the
game_template
***/
global type game_code from game_template
end type

/***
Declaring a local variable type - unocard_1 -
from the uno_template that is within game_code
***/
type unocard_1 from uno_template within game_code
end type
end forward


/***
After the 'prototype' we create the actual variable here
with properties in place
***/
global type game_code from game_template
long backcolor = 12632256
unocard_1 unocard_1
end type


global game_code game_code


type unocard_1 from game_template`unocard_1 within game_code
end type


Thanks.
0 new messages