Home | Reviews | GUIpedia | Forum | Fun500


jasonwoodlandCrystal Scripts
I was just wondering if it's easy to write in this type of scripting language; INIT $WINX=100 $WINY=100 $WINW=600 $WINH=400 $WINT="Test window" ENDINIT VIEWPORT $WINX, $WINY, $WINW, $WINH MERGE $GEO_WINDOW $GEO_X=$WINX $GEO_Y=$WINY $GEO_W=$WINW $GEO_H=$WINH $GEO_T=$WINT 'TITLE $GEO_D="TRUE" 'TRUE DRAGGING $GEO_S="FALSE" 'NO RESIZE ENDMERGE $PI = 22/7 GPRINT 0,0,"Pi is" + $PI,&hffffff,&h0 Oh, and when's the date of the GUI Awards? I set the bar higher than my last release, Cobra, yeah!
2009-10-168:58 AM

BrandonRe:Crystal Scripts
Sign-ups will begin Dec. 1. I have a feeling that entering all those variable names is not going to be a lot of fun, it would be a lot easier if you could just pass them as arguements.
2009-10-1610:57 AM

ToddRe:Crystal Scripts
I agree. One convention of writing code is always to make it neat and with as few lines as possible. ;) Again it's up to you but for ease of coding, I'd suggest doing as Brandon said.
2009-10-1612:54 PM

jasonwoodlandRe:Crystal Scripts
can i have an example? please?
2009-10-166:58 PM

BrandonRe:Crystal Scripts
Instead of: INIT $WINX=100 $WINY=100 $WINW=600 $WINH=400 $WINT="Test window" ENDINIT VIEWPORT $WINX, $WINY, $WINW, $WINH Should be: VIEWPORT 100,100,600,400,"Test Window"
2009-10-167:31 PM

jasonwoodlandRe:Crystal Scripts
It can do both, i set window locations in INIT so i can drag the window.
2009-10-167:34 PM

BrandonRe:Crystal Scripts
Well the second way is the way people will use probably.
2009-10-167:35 PM

jasonwoodlandRe:Crystal Scripts
when i release the documentation itll make proper sence, oh, jw, can fun500 make a paint app?
2009-10-167:45 PM

BrandonRe:Crystal Scripts
What do you mean?
2009-10-168:57 PM

jasonwoodlandRe:Crystal Scripts
Crystal, its much more flexible, it handles Hardcode( "hello" ) as well as Memory Stored Data( $Hello ) and numbers in hardcode( 22/7 100 ^2 -54 etc.. ) and numbers can be stored in MSD aswell. ( $twentytwo / 7 * 100 ) is called a formula.
2009-10-169:13 PM

BrandonRe:Crystal Scripts
Basically you are saying that any parameter for a function in your script can be a variable or even contain math?
2009-10-179:39 AM

jasonwoodlandRe:Crystal Scripts
Well, . yeah, why?
2009-10-1710:12 AM

BrandonRe:Crystal Scripts
That's a good thing.
2009-10-1710:18 AM

jasonwoodlandRe:Crystal Scripts
does fun500?
2009-10-1710:20 AM

BrandonRe:Crystal Scripts
Well 5 can use anything because apps are made in BASIC itself. 4 didn't have that functionality.
2009-10-1711:54 AM

jasonwoodlandRe:Crystal Scripts
How can you DIM SHARE something inside a SUB? Im still working on a ton of documentation. btw
2009-10-214:44 AM

agumaRe:Crystal Scripts
You can't DIM SHARE something in a SUB, dim share it in the global scope. I don't see any reason whatsoever that you'd need to do it in a SUB.
2009-10-217:14 PM

jasonwoodlandRe:Crystal Scripts
For parsing, read how many tokens there are, dimension, then write the tokens.
2009-10-2212:51 AM

BrandonRe:Crystal Scripts
Use REDIM.
2009-10-225:37 PM

GUIs


2021 Brandon Cornell