Before getting into LiveCode

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
intermi
Posts: 2
Joined: Tue Mar 19, 2013 6:38 pm

Before getting into LiveCode

Post by intermi » Tue Mar 19, 2013 6:46 pm

Hello people, I have developed an app in Microsoft Visual Studio 2010 using NET Framework 4...

The app can manage excel files, opens them like a database using OLEDB, it also uses an Access Database, then it writes back into the excel file and things like that...
Something like (just in case, an example):

Code: Select all

Imports System.Data.OleDb

Code: Select all

sConnectionString = _
"Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & .FileName & ";" & _
"Mode=Share Deny None;" & _
"Extended Properties=""Excel 12.0;HDR=Yes;IMEX=0;ReadOnly=0;"""

sqlExcel = "UPDATE [Sheet1$] SET COLUMN_A = 'NO' WHERE FIXED IS NULL"
        Using oledbConn As New OleDbConnection(sConnectionString)
            oledbConn.Open()
            Dim oledbComand As New OleDbCommand(sqlExcel)
            oledbComand.Connection = oledbConn
            oledbComand.ExecuteNonQuery()
        End Using
Is this possible to do with LiveCode? Of course I need to do a lot more than that, using Listviews, Textbox, Buttons, NumericUpDown, Openfiledialog, MessageBox with Yes or No Buttons... And stuff like that

The final user will need to install anything before using my app made with LiveCode in MAC or WIN? I mean something like Net Framework after building something with VS2010... Or I can send them the app and they can use it just like that it doesnt matter if it's MAC or WIN?

That's all for now, thanks
Sorry for my english

jamsk
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 16
Joined: Tue Dec 18, 2007 4:08 am
Location: Atlanta, GA
Contact:

Re: Before getting into LiveCode

Post by jamsk » Tue Mar 19, 2013 8:07 pm

Curry Kenworthy was working on a LiveCode tool to work with excel spreadsheets. Try him at info (at) curryk (dot )com
----------------------------------------
Because I won't always be a n00b!

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Before getting into LiveCode

Post by monte » Tue Mar 19, 2013 8:44 pm

There's currently no oledb driver for livecode. There's an odbc driver though so you should be able to do what you want but having said that I haven't done it so I'm not going to promise anything... If you can work with an odbc driver then you should be able to deliver your app without the user installing much other than office. You will want to reconsider access and maybe use valentina or sqlite because there's no access on Mac.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

matthiasr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 190
Joined: Sat Apr 08, 2006 7:55 am
Location: Lübbecke, Germany
Contact:

Re: Before getting into LiveCode

Post by matthiasr » Wed Mar 20, 2013 12:37 am

Actualtech http://www.actualtech.com is offering a mac os x odbc driver for Excel and Access. So no need for an access version for mac.;)
The customer just has to install that odbc driver. She/he does not have to add/configure a system- or user-dsn. You could
use odbc connection strings in your app to connect. There is a general site with connection strings examples here http://www.connectionstrings.com

The support of Actualtech is very helpful. If you have problems with the correct connection strings just ask them. They will provide you example strings which work with their odbc drivers.

Cheers,

Matthias

intermi
Posts: 2
Joined: Tue Mar 19, 2013 6:38 pm

Re: Before getting into LiveCode

Post by intermi » Wed Mar 20, 2013 2:44 am

Thanks for the answers.

1- I've sent an email to Curry today...

2- I think I had a problem in the past with ODBC and Excel and that's why I started with OLEDB but let me try again in VS...

3- The drivers from mysql can work with LiveCode too right? I mean for Win and Mac...
MySQL -> Downloads Section -> Conector/ODBC (I can't post links)

4- What about the open source version of LiveCode? When it's coming out? Where can I sign up for it?
The pledge thing still open? I can help with the pledge or if it's closed can I get that version anyway?

EDIT: If the drivers of MySQL can work with LiveCode and Mac that would be great since they are free, Actualtech not :(

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Before getting into LiveCode

Post by Simon » Wed Mar 20, 2013 5:34 am

The pledge thing still open?
Kickstarter isn't still open but you can invest:
http://www.runrev.com/products/what-now
I don't know if those pledge levels still include all the perks but you can ask support@runrev.com
I can help with the pledge or if it's closed can I get that version anyway?
The open source version will be available soon (sometime this month).

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

matthiasr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 190
Joined: Sat Apr 08, 2006 7:55 am
Location: Lübbecke, Germany
Contact:

Re: Before getting into LiveCode

Post by matthiasr » Wed Mar 20, 2013 11:55 am

intermi,
3- The drivers from mysql can work with LiveCode too right? I mean for Win and Mac...
MySQL -> Downloads Section -> Conector/ODBC (I can't post links)
LiveCode has built-in support for mySQL. You do not need ODBC drivers to connect to MySQL with Livecode.

wilstrand
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Mon Jan 03, 2011 3:02 pm
Contact:

Re: Before getting into LiveCode

Post by wilstrand » Sun Mar 24, 2013 1:33 am

Hi Intermi!

I have just released rGrid which is a spread sheet inspired grid control.
rGrid is open source so you can use the code as you wish for non commercial projects.
I have been working together with Curry so rGrid has an import.xlsx function built in using Currys spreadLib.
Maybe rGrid could be part of a soultion for you. And for me, in this stage of development, all feedback would be very valuable!
There is a dictonary and a collection of demo scripts that I hope shows what can be done and how to do it.
You can download the latest version from http://www.tapirsoft.com

With my best regards

Mats Wilstrand
http:www.tapirsoft.on-rev.com
Open Source LiveCode Plugins - rIDE, rGrid, rTree
LiveCode projects

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”