Re: Wildcards in Calculations



If that 'x' will be the only 'x' (i.e. no x's in the unit size, ea, ml, etc.), then you can do this:

leftwords(substitute(Package Size, "x", " "), 1)


VoicesInMyHead wrote:
Ok, I know it's been awhile since the last time I was here. My
company switched from FMP to SQL. Doh! So, now I have all this SQL
crap floating around in my head, and I need to make a new FMP layout
on a system that has not yet been changed over.

Anyway, I have a text field (Package Size) with the following:
60 EA
240 ML
100 EA
25X20ML
180 EA
42X5ML

Fact: Each line with an "x" has no spaces.
Fact Each line without an "x" does have a space

I need to extract the number from the left up to the space or the x.
Once I get this worked out, I will have to also extract the number to
the Right of the "x" into a different field, but I think I can work
that out.

Current Attempt:

If(Package Size = "*x*";
Left(Package Size;Position(Package Size;"x";1;1));
Left(Package Size;Position(Package Size;" ";1;1)))

I am assuming it's a problem with my 'search' for the "x" - but I am
running around in circles in my head... and it's crowded in there!
Anyone care to correct me? Thanks!
.



Relevant Pages

  • Wildcards in Calculations
    ... company switched from FMP to SQL. ... now I have all this SQL ... I need to extract the number from the left up to the space or the x. ... running around in circles in my head... ...
    (comp.databases.filemaker)
  • Re: Missing Daigrams
    ... post named "VB6 SP6 problem with SQL 2000 Enterprise ... Manager" in the newsgroup microsoft.public.vb.bugs. ... (You might need winzip to extract files/cabs) ...
    (microsoft.public.sqlserver.tools)
  • Re: Wildcards in Calculations
    ... company switched from FMP to SQL. ... now I have all this SQL ... running around in circles in my head... ... You could also use the Position function since if the data does not ...
    (comp.databases.filemaker)
  • Re: Epicor - Vantage product
    ... PICK system...do you know anything about this...I am trying to extract the data into SQL so we can qry the old records. ... Depending on the release of UV that you're running, you should have a perfectly good SQL engine available in UV. ... consulting help can be provided to get the data flattened and extracted. ... Systems Theory internet music project links: soundclick garageband "Soundtracks For Imaginary Movies" CD released Dec 2004 "Codetalkers" CD coming end of 2005 NP: nothing. ...
    (comp.databases.pick)
  • Re: ! Kennedy Might Need Butthole Surgery to Correct Severe Excretory Malfunction
    ... On May 19, 11:55 am, Captain America ... Only to extract his head from his ass. ... final trip off the bridge. ...
    (alt.politics)

Loading