Syntax problem

Varen Swaab varen at veggio.com
Fri May 6 03:37:07 EDT 2005


Sarah & Ken

Thanks to your suggestions I've got the problem licked. The url is now
loading as intended. Sometimes it's the easiest problems that stump us the
most. 

Var


On 5/5/05 11:41 PM, "Ken Ray" <kray at sonsothunder.com> wrote:

> On 5/6/05 12:50 AM, "Varen Swaab" <varen at veggio.com> wrote:
> 
>> Thanks Sarah
>> 
>> I don't think I understand your reply. The variable "theLink" holds a
>> well-formed url. I'm looking to add to that url by adding the contents of
>> another variable "subID"
>> 
>> Example:
>> 
>> variable theLink holds  "http://www.google.com"
>> variable subID holds a number such as "44568"
>> 
>> I'm looking for a way to combine both variables so the result is:
>> 
>> http://www.google.com/44568
>> 
>> I have been trying to combine the values of both the variables like this:
>> 
>> get URL(&theLink&"/"&subID&)
> 
> You almost have it... you don't need the first and last &, so what you're
> really looking for is:
> 
>   theLink & "/" & subID
> 
> which will give you
> 
>   http://www.google.com/44568
> 
> So to pass that to 'get URL' you just do:
> 
>   get URL(theLink & "/" & subID)
> 
> The "&" is a concatenation operator, so have an "&" at the beginning of the
> string confuses Rev, and the one at the end is unnecessary.
> 
> Hope this helps,
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: kray at sonsothunder.com
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

> 
> 
> 
> Varen Swaab





More information about the use-livecode mailing list