Re: strcat in applescript?
Re: strcat in applescript?
- Subject: Re: strcat in applescript?
- From: J Charles Ferrari <email@hidden>
- Date: Thu, 11 Nov 2004 10:42:30 -0800
use & instead of +
set x to "A"
set y to 2
set z to x & y --> "A2"
Charles
On Nov 11, 2004, at 10:36 AM, Miss Augustina wrote:
on intToStrcat (char a, int b)
return [ how do i return a + b without adding them? ]
end intToStrcat
so if a = X and b = 2, it should return "X2" as a string.
also when passing values to functions in AppleScript, the syntax "value" is used. If i want to substitue a return value for a function do I also need to concatenate quotes around my return value? so if i wanted to use the above function in place of specifying a static value basically, would Applescript recognize the return value without quotes or do I need to concatenate them around the return value?
set rowID to "2"
set colID to "A"
set x to Value of Cell intToStrcat(colID, rowID) <-- will return A2 not "A2".
sorry if these are totally obvious questions.. feel free to point me to a reference if that is more appropriate.
TIA!!
augustina
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden