Arrays was Documentation and Books
Mark Brownell
gizmotron at earthlink.net
Wed Jul 7 18:21:12 EDT 2004
on 7/7/04 3:07 PM, Mark Brownell at gizmotron at earthlink.net wrote:
>> Is the str a necessary part of the variable name, or am I correct in
>> thinking that even if you don't specifically say it is a string, Rev
>> will assume it is?
oops. I forgot my adventures into realbasic & VB you don't need to declare
a string with str. A variable can be anything as long as it is not a
function or a command already in use.
I like stuff like this:
put bobTheGreatOne("smile face with eating grin") into aVatofAcid
function bobTheGreatOne someText
if someText = "smile face with eating grin" then
put "What are you so happy about?" into x
return x
end if
end bobTheGreatOne
Mark
More information about the use-livecode
mailing list