Jump to content

This topic is 7106 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

With Lasso 8, you can use a "-Distinct" command to call only distinct records in mySQL however, this command is not supported by Filemaker.

Basically this Distinct command only returns unique values.

I have a database, with a "submitted_Date" Field, there can be numerous records with the same submitted date, I would like to only return that submitted date one time however. Just wondering if anyone knew if this was possible with Lasso 8?

Posted

Hmmm.... I hear Lasso's pretty versatile, so if it has some kind of looping mechanism, you might be able to loop and compare to the previous value and skip it if it is the same as the previous value... something like...

y='novalue'

loop 1 to nrecords

.. x=[field:myfield]......// x is equal to the field value

.. if x != y ..................// if they are not equal to each other

.. .. [record]

.. .. [field:myfield]

.. .. [/record]

.. y = [field:myfield]....// y is set to compare with x on next loop

endloop

I think that's right, anyway. I saw in another post how you can define variables in Lasso with the [var:] tag. If there's a loop of some kind, I think you'll be alright, eh?

Here's hoping!

--ST

Posted

I found an easier way, thanks tho. I am now doing it through Filemaker. I just created a vaule list based on the field I wanted only distinct values returned from, since they don't duplicate, it works just great.

This topic is 7106 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.