Have i found an hidden Print function??

General FreeBASIC programming questions.
mrminecrafttnt
Posts: 85
Joined: Feb 11, 2013 12:23

Have i found an hidden Print function??

Postby mrminecrafttnt » Dec 17, 2018 22:35

Check this..

Code: Select all

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

Re: Have i found an hidden Print function??

Postby badidea » Dec 17, 2018 22:47

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: 7667
Joined: May 28, 2005 3:28

Re: Have i found an hidden Print function??

Postby D.J.Peters » Dec 17, 2018 22:54

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

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest