Need help with "Search" code, Red Lion/Crimson 3.

jfls45

Member
Join Date
Mar 2012
Location
Pennsylvania
Posts
76
I'm trying to add a feature that will search for a floating number in an index of recipes. I don't see any Function References allowing me to do this.

I want to be able to type in the number I'm looking for and have it search for this number and display it.

Hoping one of you Red Lion gurus will have some help for me.

Thanks

JFLS45
 
My current page is setup as follows:

2.000 x .250 (this line is highlighted)
x.xxx .xxx
x.xxx .xxx

I can scroll up and down this list but am wanting to setup a search feature where I can type in values I am looking for and have it automatically highlight the values in the list.

Hoping one of you Red Lion gurus will be able to point me in the right direction?

Thanks


JFLS45
 
I realize this is simplified, but hopefully it will put in the the right direction.

Assume the list is an array.
Code:
for(i=0, i< listsize, i++) {
      If (list(i)==SearchValue) break;
}
i will be the array index to the matching value in the list. If i is listsize then the end of the list was reached.
 
Last edited:
I know its been awhile since you posted your reply. I am just now revisiting this project. I tried using the code as you wrote it but of course some changes were necessary. It didn't like the list function, said it was unknown.
 

Similar Topics

I have an old Sentry Palletizer (S/O Number 3007 / Serial Number 1172) that has lost its program as the backup battery died years ago. I can...
Replies
0
Views
86
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
64
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
11
Views
364
Hi all, I am having issues accessing my Cimplicity software - the site code changed after re-install and I am no longer able to attain a new key...
Replies
10
Views
193
Good day all! Can someone help me with the procedure to update Beijers E700 firmware? The Panel I am working on is firmware 2.04v and I would...
Replies
1
Views
93
Back
Top Bottom