[PLUGIN] CSV, CSV2Array, CSV2Dictionary

Post your completed addons to share with the community

Post » Sat Jun 01, 2013 12:31 am

[QUOTE=rexrainbow] @lanceal

"Action: Load table from csv string" , see first post of this thread.[/QUOTE]

I see it but I'm not quite sure how it works to prompt a user for a file to load. What I am looking to do is import data from third party sites. So I can't control the file name on the persons computer. I want to all a user to download info from another site into a csv file on their machine and then give them the ability to upload the information to my server. Would using the file reader plugin work to load the string and then parse it using your plugin?
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Sat Jun 01, 2013 1:00 am

@lanceal
The input parameter of this action is only a string, it could be the result of --
- read from global variable, instance variable
- download file from Ajax
- read from file reader
Or something else...
rexrainbow2013-06-01 01:11:52
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Mon Jun 03, 2013 12:17 am

Hey Rex, How's going buddy?

Could you remind me if I can use more then one cvs plugin, and call the something like csv and ssv2 etc and then pull data from both when doing math?

Thanks
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Mon Jun 03, 2013 4:47 am

@megatronx

I don't understand this request, do you mean that you want to use csv to do matrix calculation?
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Mon Jun 03, 2013 6:38 am

Oh, no no, I shouldn't have say math! I meant just taking a one variable from one table and taking another one from another table, turn them in to int and add them or subtracted etc using system's Set Value.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Mon Jun 03, 2013 7:09 am

@megatronx

CSV plugin supported multi-pages, each page is one csv table.
What's math operation do you want?
For example,
CSV.PageAdd("res", "p0", "p1") -> page "res" = page "p0" + page "p1"rexrainbow2013-06-03 07:10:55
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Tue Jun 04, 2013 1:34 am

I know it supports multipages. I was just wandering if I could use two csv's so will not have to store values from one page in a tempVar as int, then turn the page, grab another value and put it in to tempVar2, then again turn page back to the page I want to store value on, and set that value in a specific location in the table to 'tempVar + tempVar2' . Loads of hustle. If you could do that grabbing values from different pages would not change the current page, then that would be awesome. Otherwise I would hope that having several csv plugins running simultaneously would do the trick. megatronx2013-06-04 01:35:40
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Jun 04, 2013 4:24 am

@megatronx

The parameters of expression:At.
You could assign page name at "expression:At", more over, you could assign a default value for invalid entry. It's might help you.

BTW, to support matrix operation is also a good idea. I just don't know when will use it.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Tue Jun 04, 2013 4:24 pm

I know, but last time i was using it, it didn't turn the page to get a value from the page i needed so i had to store those in a separate variable.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Tue Jun 04, 2013 5:45 pm

@megatronx

Cpax -CSV.At with page assignmentrexrainbow2013-06-04 17:47:10
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: Josek5494 and 1 guest