[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2009-01-27T20:59:36-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/2865 2009-01-27T20:59:36-05:00 2009-01-27T20:59:36-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=18699#p18699 <![CDATA[FBC Compiler error]]> -> is the pointer dereference operator.
Like the period is used to access the parts of a type.
If you are accessing the points of a type ptr, then you use ->

Code:

Type test     a as integerend typedim variable as testdim variable_ptr as test ptr'@ means Address ofvariable_ptr = @variablevariable.a = 4print variable_ptr->a

Statistics: Posted by Imortis — Tue Jan 27, 2009 8:59 pm


]]>
2009-01-27T18:31:26-05:00 2009-01-27T18:31:26-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=18698#p18698 <![CDATA[Re: No wonder FB sucks.]]>
QB uses >=. FB uses -> ? That don't sound right :wink:
I used it like this

Code:

const packSize as integer = 5type dog dim age as integerend typedim pack(1 to packSize) as dogdim oldest as dog ptr'... blah blah blah, do stuff with dogs' ages'Find oldest dog in packoldest = @pack(1)for i as integer = 2 to packSize 'compare age if oldest=>age < pack(i) then oldest = @pack(i)next iend 

Statistics: Posted by Mentat — Tue Jan 27, 2009 6:31 pm


]]>
2009-01-27T18:16:56-05:00 2009-01-27T18:16:56-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=18697#p18697 <![CDATA[No wonder FB sucks.]]>

Statistics: Posted by burger2227 — Tue Jan 27, 2009 6:16 pm


]]>
2009-01-27T18:10:04-05:00 2009-01-27T18:10:04-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=18696#p18696 <![CDATA[FBC Compiler error]]> Statistics: Posted by Nodtveidt — Tue Jan 27, 2009 6:10 pm


]]>
2009-01-27T17:54:47-05:00 2009-01-27T17:54:47-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=18695#p18695 <![CDATA[FBC Compiler error]]> Statistics: Posted by Mentat — Tue Jan 27, 2009 5:54 pm


]]>
2009-01-27T17:48:38-05:00 2009-01-27T17:48:38-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=18694#p18694 <![CDATA[FBC Compiler error]]> Statistics: Posted by Nodtveidt — Tue Jan 27, 2009 5:48 pm


]]>
2009-01-27T13:14:27-05:00 2009-01-27T13:14:27-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=18693#p18693 <![CDATA[FBC Compiler error]]> Statistics: Posted by Mentat — Tue Jan 27, 2009 1:14 pm


]]>