TG station interfacing with circuit tables
-
- Joined: Sat Nov 20, 2021 4:57 am
- Byond Username: JohnSmith1234
TG station interfacing with circuit tables
Anyone know how to interface with tables in the integrated circuits, what I am trying to do in interface with the security records table and print out the name column of the table, I've tried using the select query component and the index table component but they both don't seem to be giving me what I'm after. The index table component gives two outputs when triggered, a string and a list, what does this mean? I tried separating them using the separator but no joy. If anyone has any ideas let me know please.
- Rohen_Tahir
- Joined: Wed Jun 05, 2019 1:00 pm
- Byond Username: Rohen Tahir
- Location: Primary fool storage
- Contact:
Re: TG station interfacing with circuit tables
Have you tried summoning a demon to help you with this issue?
- TheSmallBlue
- Joined: Thu Oct 31, 2019 3:55 pm
- Byond Username: SmallBlue
Re: TG station interfacing with circuit tables
- TheSmallBlue
- Joined: Thu Oct 31, 2019 3:55 pm
- Byond Username: SmallBlue
Re: TG station interfacing with circuit tables
To answer your other questions, the reason why Index Table returns a string, any list output is because that's how associative lists are presented. You'd need a special component that can handle associative lists, like Index Associative List or Format Associative List.
When it comes to USB components, only reason you'd use Index Table is with Select Query to get all the information from one specific person. For example
Lest say we have someone named Joey Clark, and you want to get their species.
You first use the Select Query component to get a table only including Joey Clark's information by changing the Column Name value to "name" (you can see a list of available columns by clicking the i icon on the security records data component) and the Comparison Input to Joey Clark. Then you use the index table component to turn the table into a manageable associative list, which you then index via the value you want to get with the Index Associative List component, in this case "species".
Here's how it'd look:
This isn't what you're looking for according to this post, but its useful to know anyways
When it comes to USB components, only reason you'd use Index Table is with Select Query to get all the information from one specific person. For example
Lest say we have someone named Joey Clark, and you want to get their species.
You first use the Select Query component to get a table only including Joey Clark's information by changing the Column Name value to "name" (you can see a list of available columns by clicking the i icon on the security records data component) and the Comparison Input to Joey Clark. Then you use the index table component to turn the table into a manageable associative list, which you then index via the value you want to get with the Index Associative List component, in this case "species".
Here's how it'd look:
This isn't what you're looking for according to this post, but its useful to know anyways
-
- Joined: Sat Nov 20, 2021 4:57 am
- Byond Username: JohnSmith1234
Re: TG station interfacing with circuit tables
Ah thank you, I managed to figure out what you posted in your first reply but the associative list info is super helpful. Thanks homie!
Who is online
Users browsing this forum: Google [Bot], NNMKR