Jump to content

Custom Selection by Field Value not working as expected.


Recommended Posts

I have a simple tag symbol with one record value attached to the text within. The record is called TextRecord, the field is called TextField and is of type Text with a default value of X. I have inserted various numerical like values from 01 through to 22. I did not use integer format because I needed the leading zero.

So after placing this symbol numerous times and inserting the values I sought to reorganize the legend. This required me to select the symbols based upon the value of a record's field ("TextField").

I brought up the command Custom Selection and set it to select only. Then adjusted the criteria to field value , "TextField" = 01The result was nothing being selected yet there are at least two or more symbols which are displaying this field value. I tried other values with the same result. I tried placing single and double quotes around the value; the result was scripting errors. I change the criteria so it was "TextField" <> 01 and the tool selected all the tag symbols.

Arrrgh! Help please...

Oh, and here is a good one if I enter 0 (zero) instead of 01 in the first instance, all objects except for the symbols with the record attached/embeded to them are selected! Where is a bug gremlin when you need it?

[ 04-17-2002: Message edited by: losolin ]

Link to comment

Try This----------------DSelectAll; SelectObj(('TextRecord'.'TextField'='01' ));{ Select objects with 01 only }-----------------

Make sure your objects are not groupedand are on the active layer or the script will not select the objects

The syntax above is correct

Dave smile.gif" border="0

[ 04-17-2002: Message edited by: Fuge ]

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...