dbTalk Databases Forums  

Create an ID numbers mixing numbers and letters

comp.databases.filemaker comp.databases.filemaker


Discuss Create an ID numbers mixing numbers and letters in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christophe Planchais
 
Posts: n/a

Default Create an ID numbers mixing numbers and letters - 12-11-2006 , 10:19 PM






Mac OSX 10.4 with fm 8.1

I am producing a lot of tv short segments regrouped in three modules
with differnet names (health, futur, environment). I'd like to give them
an ID composed of the accounting number of the show (6300) the first
letter of the module (H for Health, F for...) and a number indicating
its place in the module (1 to 4). All fields are already parts of my
template. What is the script to create the complete id (6300F1 for
example). Thanks for your help

Chris

Reply With Quote
  #2  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: Create an ID numbers mixing numbers and letters - 12-12-2006 , 12:44 AM






What about an 'ID' field calculated as :
ID (calc) = Show# & Left(Module; 1) & n
n being the place in the module ?
But I would advise to add another 'Record#' field (number) unique per record
with option set as autoenter serial. It would be incremented automatically
when creating a record. This would make sure each record has a unique and
reliable record number.
Remi-Noel

"Christophe Planchais" <chriplan (AT) free (DOT) fr> a écrit dans le message de news:
chriplan-596B70.05192712122006 (AT) ...OT) proxad.net...
Quote:
Mac OSX 10.4 with fm 8.1

I am producing a lot of tv short segments regrouped in three modules
with differnet names (health, futur, environment). I'd like to give them
an ID composed of the accounting number of the show (6300) the first
letter of the module (H for Health, F for...) and a number indicating
its place in the module (1 to 4). All fields are already parts of my
template. What is the script to create the complete id (6300F1 for
example). Thanks for your help

Chris



Reply With Quote
  #3  
Old   
Matt Wills
 
Posts: n/a

Default Re: Create an ID numbers mixing numbers and letters - 12-13-2006 , 07:31 PM



Look at the text functions in Help:

Show & Left ( Module ; 1 ) & Place

Matt

On 12/11/2006 23:19:27 Christophe Planchais <chriplan (AT) free (DOT) fr> wrote:

Quote:
Mac OSX 10.4 with fm 8.1

I am producing a lot of tv short segments regrouped in three modules with
differnet names (health, futur, environment). I'd like to give them an ID
composed of the accounting number of the show (6300) the first letter of
the module (H for Health, F for...) and a number indicating its place in
the module (1 to 4). All fields are already parts of my template. What
is the script to create the complete id (6300F1 for example). Thanks for
your help

Chris

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.