No auto completition within terms

Working on new editor enhancements?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

No auto completition within terms

Post by AND51 »

Hello!

The IDE does not auto complete in this case (whereas | stands for the cursor):

Code: Select all

*addr=DrawingBuffer()
For pixel=0 To SpriteHeight(0)*drawingbuff|
Next
The command DrawingBufferPitch(), which I attempted to access, is not being listed (the list itself doesn't even open).

Pay attention that this happens within in a term. If I write the command to a new line, it will be autocompleted. Furthemore, this is not only DrawingBufferPitch(), this applies to all commands. I just tested it with OpenWindow() again to be sure.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

This issues seems to be caused by the operator '*' (multiply).
Try this, using the operator '/' (divide) and it works:

Code: Select all

StartDrawing(SpriteOutput(0))
	*addr=DrawingBuffer()
	Debug SpriteHeight(0)*SpriteHeight(0)
	Debug SpriteHeight(0)*DrawingBufferPitch()/drawingbu|
	End
StopDrawing()
| = Cursor
PB 4.30

Code: Select all

onErrorGoto(?Fred)
#NULL
Addict
Addict
Posts: 1499
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

yes, i noticed that sometimes too.
seems to think it's an undefined *pointer, so no autocompletion.
Post Reply