Use the Mid() function:
newvariable = Mid(variable, startposition, endposition)
> -----Original Message-----
> From: PC [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 04, 2000 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: How to get part of string?
>
>
> I must be missing something obvious -- but I need a function to set a
> variable to a range of characters within a string.
>
> I know the starting and ending indices -- how can I set a variable to the
> characters within that range? I don't see a function for that...
>
> THX
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with
> 'unsubscribe' in the body.
>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.