DataGrid Manual Updating
Posted: Thu Jun 05, 2014 10:08 pm
Hello Everyone,
I am new to the forum (and Livecode for that matter) and have been enjoying the last 3 weeks learning this language as my first serious attempt to learn programming. I have tackled many of the basics and plan on focusing on Programming as a new tool in my IT toolbox with LC being the tool of choice. My question today is about manually adding rows/records to the datagrid. I am sure this is probably simple and I did attempt to search the forum prior to posting a question but did not find what I was looking for. Here is my situation:
I want to be able to use a standard button and have this button pass variable data to the datagrid on mouse up. An example would be if I had a button named Sandwich the Sandwich button would have a variable named varDescription and another variable named varPrice. I would like to set a description and price for this Sandwich button. When the button is clicked I would like for the varDescription value and the varPrice value to be passed to the datagrid which would have 2 columns (description and Price). Any help in understanding how to write this effectively would be appreciated. Thanks in advance for any advice and I am very excited to be joining this amazing forum.
I am new to the forum (and Livecode for that matter) and have been enjoying the last 3 weeks learning this language as my first serious attempt to learn programming. I have tackled many of the basics and plan on focusing on Programming as a new tool in my IT toolbox with LC being the tool of choice. My question today is about manually adding rows/records to the datagrid. I am sure this is probably simple and I did attempt to search the forum prior to posting a question but did not find what I was looking for. Here is my situation:
I want to be able to use a standard button and have this button pass variable data to the datagrid on mouse up. An example would be if I had a button named Sandwich the Sandwich button would have a variable named varDescription and another variable named varPrice. I would like to set a description and price for this Sandwich button. When the button is clicked I would like for the varDescription value and the varPrice value to be passed to the datagrid which would have 2 columns (description and Price). Any help in understanding how to write this effectively would be appreciated. Thanks in advance for any advice and I am very excited to be joining this amazing forum.