Exporting Excel (xls*) to Flare Variable Set (flvar)

This forum is for all Flare issues not related to any of the other categories.
Post Reply
cjs
Propeller Head
Posts: 11
Joined: Fri Dec 14, 2012 1:37 pm

Exporting Excel (xls*) to Flare Variable Set (flvar)

Post by cjs »

Hello!

I have a substantial set of string variables (~10,000) that I use for the UI, each localized for the supported languages. I then utilize these reference these variables by name in the Flare project. The common source is a SQL database that I output to CSV that is utilized by the UI. I need to convert the CSV (or Excel) file to a properly formatted Flare variable set (*.flvar file).

Anyone have a VBA or other script to convert either CSV or Excel files to flvar files?

Thank you!
Chris
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Exporting Excel (xls*) to Flare Variable Set (flvar)

Post by doc_guy »

This is messy, but you could insert columns into the Excel file and in the columns include the XML text that you need before the variable name and definition. Then copy the data of those columns down. Then export the whole thing as a csv with a custom csv delimiter (space).

I think that would work.
Paul Pehrson
My Blog

Image
jasonsmith
Sr. Propeller Head
Posts: 205
Joined: Wed Apr 28, 2010 2:51 am

Re: Exporting Excel (xls*) to Flare Variable Set (flvar)

Post by jasonsmith »

Could you save your Excel file as a XML file and then perform an xsl Transformation? I've done this a couple of times and it usually works pretty well.
msander
Jr. Propeller Head
Posts: 8
Joined: Tue Sep 30, 2014 12:06 am
Location: Sweden, Denmark
Contact:

Re: Exporting Excel (xls*) to Flare Variable Set (flvar)

Post by msander »

Hi,

Here's a simple spreadsheet you can use: https://dl.dropboxusercontent.com/u/437 ... leSet.xlsx

The animated GIF shows how to use it.

Good luck!
Mattias

Image
cjs
Propeller Head
Posts: 11
Joined: Fri Dec 14, 2012 1:37 pm

Re: Exporting Excel (xls*) to Flare Variable Set (flvar)

Post by cjs »

Thank you Mattias! This is awesome.
Post Reply