Have i found an hidden Print function??

General FreeBASIC programming questions.
Post Reply
mrminecrafttnt
Posts: 131
Joined: Feb 11, 2013 12:23

Have i found an hidden Print function??

Post by mrminecrafttnt »

Check this..

Code: Select all

screenres 640,480
print string((1024*8)+210,2)
sleep
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Have i found an hidden Print function??

Post by badidea »

Code: Select all

dim as integer c = 2
screenres 640,480
while not multikey(1)
	locate 1,1
	print string(1, c)
	c = iif(c = 2, 1, 2) 
	screenlock
	for y as integer = 0 to 8-1
		for x as integer = 0 to 8-1
			line (140 + x * 45, 60 + y * 45)-step(40, 40), point(x,y), bf 
		next
	next
	screenunlock
	sleep 250,1
wend
sleep
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: Have i found an hidden Print function??

Post by D.J.Peters »

mrminecrafttnt wrote:Have i found an hidden Print function ??
NO :-)

I's a string/char repeat function.

Joshy

Code: Select all

screenres 640,480
print string(210,chr(2))
sleep
Post Reply