Syntax problem

Sarah Reichelt sarahr at genesearch.com.au
Fri May 6 00:15:04 EDT 2005


>> I’m having a lot of trouble with the syntax of this statement:
>>
>> get URL(&theLink"/"&subID)
>>
>> I’m trying to merge to globals to make a URL.
>>
>> It’s just not working any way I play with the “&’s” and I never really
>> understood the syntax of this type of statement. If anyone could help 
>> I’d be
>> very grateful.
>>
Hi Varen,

What sort of URL are you trying to create? Rev uses this syntax for web 
pages and files.
For web pages, the structure needs to be the same as the address in a 
browser e.g.
	get URL "http://www.google.com"

For files,  you need to know the complete path to the file (unless it 
is in the defaultFolder) and whether it is text or binary.
e.g.
	get URL ("file:" & pathToFolder & "/MyFileName.txt"
or
	get URL ("binfile:" & pathToFolder & "/MyPicture.jpg"

HTH,
Sarah



More information about the use-livecode mailing list