|
Post by shadow008 on Nov 2, 2009 20:26:18 GMT -5
that will do. thanks!
|
|
|
Post by DJLinux on Nov 4, 2009 9:55:32 GMT -5
const DIS = 0 const DIS_2 = 1 const DIS_X = 1 const DIS_Y = 2
function distance#(x1,y1,x2,y2,what) dim xdif=x2-x1 dim ydif=y2-y1 if (what=DIS_X) then return xdif elseif (what=DIS_Y) then return ydif elseif (what=DIS_2) then return xdif*xdif + ydif*ydif else return SQR(xdif*xdif + ydif*ydif) end if endfunction
dim x,y,a,b,Xd#,Yd#,d#,d2#
'give them some values x = 2 y = 4 a = 7 b = 8
'return multiple values like so... d# = distance#(x,y,a,b,DIS) d2# = distance#(x,y,a,b,DIS_2) Xd# = distance#(x,y,a,b,DIS_X) Yd# = distance#(x,y,a,b,DIS_Y)
printr "xdif " + Xd# printr "ydif " + yd# printr "distance " + d# printr "squared " + d2#
|
|
|
Post by shadow008 on Nov 4, 2009 14:10:04 GMT -5
that way took me a little bit longer to understand, but it works. Thanks!
|
|
|
Post by Darkjester on Nov 25, 2009 12:15:10 GMT -5
Tom should make it so basic4gl will save the current file when you click the go button(that way if it crashes you dont lose all that work) And A redo button, and fix the ide glitches (there are a couple i can point out) and Block Commenting -darkjester
|
|
|
Post by shadow008 on Nov 25, 2009 12:16:21 GMT -5
how about FindNextFolder(dir$) that finds all folders in a certain directory instead of just files?
|
|
|
Post by crazynate on Nov 25, 2009 15:17:13 GMT -5
I would like to be able to re-dim variables and be able to connect to hardware such as scanners, printers, webcams, etc. Other features that I still would like to see is be able to load videos as sprites, embed plugins, and change the program's icon.
|
|