Tuesday, August 3, 2010

PB control "macro substitution"



hl2000_2001 Q:
I would like to write a program code is as follows:

P_1.PictureName =''help.gif''
P_2.PictureName =''help.gif''
P_3.PictureName =''help.gif''
P_4.PictureName =''help.gif''
P_5.PictureName =''help.gif''

Is there a simple way, let me use the loop to achieve?

Such as:
for i = 1 to 5
P_ ***. PictureName =''help.gif''
next
This is very anxious to see me soon please!!

newkid A:

Assume that this code is written in the OPEN WINDOW case, THIS is the current WINDOW:
int i
picture lp
for i = 1 to upperbound (this.Control)
if typeof (this.Control [i]) = picture! then
lp = parent.Control [i]
/ / Can lp.classname () to further determine not to modify the image control
lp.picturename =''help.gif''
end if
next

You can also define a picture variable array to operate, through OpenUserObject () so that they appear in the window.

NetFish A:

int i
picture p_temp
for i = 1 to Upperbound (w_test.control)
if left (w_test.control [i]. classname, 2) =''p_''then
p_temp = w_test.control [i]
p_temp.picturename =''.......''
end if
next
=============
About the meaning, not verified, testing about it.







Recommended links:



Top SCREEN Savers



Chinese revolution



Thunder look at real-time on-demand player in the player to build pan-



.mkv files



PHS delisting who is in charge



Visual Studio08 now open to MSDN users



IDC how to Charge only reasonable



PROFESSIONAL human resources workers 132 Tool - factors into account point method



New E-Commerce



U.S. stocks comment: Sun continued blood loss



Learning regular Expressions entirely Manual: Getting Started guide rookie



Convert mp3 to m4a



what is mkv FILE



youtube video format



CATIC Shenzhen: HR reform activity trip



Simple Backup And Restore



No comments:

Post a Comment