Home > database >  For help? Urgent.. Typical rookie
For help? Urgent.. Typical rookie

Time:09-29

P_picture_05. Y & lt;=(1000 - p_picture_05. Height)
The syntax error, why? Don't understand, is a data type in the wrong?

CodePudding user response:

Estimation is to be an error, this expression returns a Boolean type of data you.
Don't know you is it the whole line of code.

CodePudding user response:

True or false is equivalent to you directly with Boolean data as a single line of code. That is to prompt syntax errors.

CodePudding user response:

Concrete is this: the if p_picture_05. Y & lt;=(1000 - p_picture_05. Height) and p_picture_05. X & lt;=(2300 - p_picture_05. Width)
And p_picture_05. Y & gt; X=0 and p_picture_05. & gt;=0 then
Choose a case i_MoveFlag
Case "please", "
P_picture_05. X=i_sudu
Case "->"
P_picture_05. X +=i_sudu
Case "write"
P_picture_05. Y -=i_sudu
Case "left"
P_picture_05. Y +=i_sudu
The end choose
The else
The timer (0)
If p_picture_05. Y & gt; (1000 - p_picture_05. Height) then
P_picture_05. Y=(1000 - p_picture_05. Height)
Elseif p_picture_05. X & gt; (2300 - p_picture_05. Width) then
P_picture_05. X=(2300 - p_picture_05. Width)
Elseif p_picture_05. Y & lt; 0 then
P_picture_05. Y=0
Elseif p_picture_05. X & lt; 0 then
P_picture_05. X=0
End the if
Messagebox (" prompt ", "has moved to the border!" )
End the if
Tab_kz_05. Tabpage_yd_05. St_dqwz_05. Text="X coordinates:" + string (p_picture_05. X) + ", Y: "+ string (p_picture_05. Y)//picture position
//text color change
Long r_R r_G, r_B
R_R=Rand ($255)
R_G=Rand ($255)

r_B=Rand (255)Tab_kz_05. Tabpage_yd_05. St_dqwz_05. TextColor=RGB (r_R r_G, r_B)

CodePudding user response:

To solve, thank you,,,

CodePudding user response:

Line continuation operator & amp; ?
  • Related