[Gambas-user] Strange, but not the first time

Charlie Reinl Karl.Reinl at ...2345...
Sat Dec 22 15:08:52 CET 2012


Am Samstag, den 22.12.2012, 14:03 +0100 schrieb Benoît Minisini:

> Sorry, but I don't understand: I can't see how a list of local variables 
> sticked to their values can be used to rewrite code... And I can't keep 
> an hidden pop-up menu with only one entry in the interface, so I must 
> understand to find the best solution.
> 

So I have to say, it is just a little helper for lazy coders, who have
tonnes of variables in old code, and that code has to be split up in
different parts. 
The code itself shouldn't be changed, so the local variables needed in
the outsourced part, have to be init with a values.
To control that he make a list.

Lazy coders prefer write code to write lists, and not writing paper
lists.(see Attachment)

Other usage maybe possible!
 
-- 
Amicalement
Charlie
-------------- next part --------------
------------------------------------------------
at initialisation time
------------------------------------------------
Current = NULL
FTotalY = 0
HTotalY = 0
MaxY = 0
MaxYM = 0
MinY = 0
MinYM = 0
PBATotalY = 0
PBBTotalY = 0
PFDrawCmds = (Object[] 0xbae1fd4)
PFIndex = 0
PHDrawCmds = (Object[] 0xbaea8a4)
PHIndex = 0
cmd = NULL
cmdsection = NULL
dY = 0
f = 0
i = 0
iFirstPage = 1
iLastPage = 1
iMyPage = 0
n = 0
np = NULL
pcount = 0
pnum = 0
s = NULL
sMyIteration = ""
x = 0
y = 0

------------------------------------------------
after preparing data(1)
------------------------------------------------
Current = NULL
FTotalY = 58
HTotalY = 197
MaxY = 1110
MaxYM = 0
MinY = 248
MinYM = 0
PBATotalY = 0
PBBTotalY = 0
PFDrawCmds = (Object[] 0xbae1fd4)
PFIndex = 0
PHDrawCmds = (Object[] 0xbaea8a4)
PHIndex = 0
cmd = NULL
cmdsection = NULL
dY = 0
f = 0
i = 0
iFirstPage = 1
iLastPage = 1
iMyPage = 0
n = 0
np = NULL
pcount = 0
pnum = 1
s = (CVLAYSection 0xb83ef2c)
sMyIteration = "Job"
x = 0
y = 248

------------------------------------------------
after preparing data(2)
------------------------------------------------
Current = NULL
FTotalY = 58
HTotalY = 197
MaxY = 1110
MaxYM = 0
MinY = 248
MinYM = 0
PBATotalY = 0
PBBTotalY = 0
PFDrawCmds = (Object[] 0xbae1fd4)
PFIndex = 0
PHDrawCmds = (Object[] 0xbaea8a4)
PHIndex = 0
cmd = NULL
cmdsection = (CVDrawSection 0xbb8ad04)
dY = 0
f = 0
i = 0
iFirstPage = 1
iLastPage = 1
iMyPage = 0
n = 0
np = NULL
pcount = 2
pnum = 2
s = (CVLAYSection 0xb83ef2c)
sMyIteration = "Job"
x = 0
y = 830

------------------------------------------------
after preparing data(3)
------------------------------------------------
Current = (CVDrawSection 0xbb9828c)
FTotalY = 58
HTotalY = 197
MaxY = 1110
MaxYM = 0
MinY = 248
MinYM = 0
PBATotalY = 0
PBBTotalY = 0
PFDrawCmds = (Object[] 0xbae1fd4)
PFIndex = 0
PHDrawCmds = (Object[] 0xbaea8a4)
PHIndex = 0
cmd = NULL
cmdsection = (CVDrawSection 0xbb8ad04)
dY = 0
f = 0
i = 3
iFirstPage = 1
iLastPage = 1
iMyPage = 0
n = 0
np = NULL
pcount = 2
pnum = 2
s = (CVLAYSection 0xb83ef2c)
sMyIteration = "Job"
x = 0
y = 830

------------------------------------------------
after using data(1)
------------------------------------------------
Current = (CVDrawSection 0xbb9828c)
FTotalY = 58
HTotalY = 197
MaxY = 1110
MaxYM = 0
MinY = 248
MinYM = 0
PBATotalY = 0
PBBTotalY = 0
PFDrawCmds = (Object[] 0xbae1fd4)
PFIndex = 1
PHDrawCmds = (Object[] 0xbaea8a4)
PHIndex = 1
cmd = (CVDrawLabel 0xbb4b61c)
cmdsection = (CVDrawSection 0xbb4bf1c)
dY = 0
f = 0
i = 3
iFirstPage = 1
iLastPage = 1
iMyPage = 2
n = 0
np = (CVPage 0xbb9c754)
pcount = 2
pnum = 1
s = (CVLAYSection 0xb83ef2c)
sMyIteration = "Job"
x = 102
y = 1102



More information about the User mailing list