The Daily Click ::. Forums ::. Misc Chat ::. Confusion With Text Conditions
 

Post Reply  Post Oekaki 
 

Posted By Message

Reno



Registered
  11/01/2005
Points
  906
11th September, 2005 at 22:07:49 -

OK. I don't want to take anyones time so I'll be quick.
There are some text conditions I dont know what they do.
EX: Start of Frame
--------------
Set "Text box" to (fill in blank here)

Fill In Black Here
-------------------
Len( >Enter string here< )
Bin$( >Enter number here< )
Right$( >Enter string here<, 0 )
Left$( >Enter string here<, 0 )
Mid$( >Enter string here<, 0, 1)
Hex$( >Enter number here< )
Sin( >Enter number here< )
Cos( >Enter number here< )

I of course know how to use the "VAL" & "STR$" but don't know what these others do Could someone please tell me about anyone of these? (I'm working on a project that this may help me) I would REALLY want to know what the "Hex$" & "Bin$" are used for the most.

Thanx for any help you may provide me.
One last thing, I do know about binary code 01010010011001010110111001101111
Reno


 
Reborn Again

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
11th September, 2005 at 22:23:08 -

Len() returns the length of a string.

Right$(s,x), Left$(s,x) and Mid$(s,z,x) return x characters from string s, from the position indicated in the name. Right$(string, 2) will give you the two rightmost characters of a string, for example. Mid takes them from anywhere, that's what the other number is for.

Hex$() returns the hex value of a number. Bin$() returns the binary value. Both are strings because it includes the '0x' and '0b' tokens.
Sin() and Cos() return the sine and cosine of a number.

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
11th September, 2005 at 22:29:12 -

What do the others stand for does VAL mean value and STR$ mean string? just for future refrence.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
11th September, 2005 at 22:33:00 -

val() and str$() convert strings to values and vice versa. So if you val() the string "12345" it will become the number 12345. This is important because counters only take the number data type, and you can't do arithmetic (only concatenation) with strings. Even if it's a string of numbers.

 
n/a

Reno



Registered
  11/01/2005
Points
  906
12th September, 2005 at 07:39:58 -

I know that bin$(27)=0b11011. But why is there a "B" in there? Thanx for telling me also

 
Reborn Again

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
12th September, 2005 at 07:56:06 -

0x and 0b are hex and binary notations, respectively. They're a standard indication of base.
If they weren't there, you wouldn't be able to tell the difference between 11, 0x11 and 0b11.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click