Topic: How Can RunScript Command At Store in Database ?

I try create pascal script and insert to database

id color script
1    Red    Form1.Label1.Font.color := $0000FF ;
2    Green    Form1.Label1.Font.color := $008000 ;
3    Black    Form1.Label1.Font.color := $000000 ;

and show all script first form in tabalegrid
after call value script to Form1.Edit1.Text Show in textbox

Question ???
Can run  script in textbox for display  effect color  by button click to lable1 ???
https://s18.postimg.org/6l6u58eid/2016_10_03_16_35_52.png

Post's attachments

Attachment icon ScriptInDB.zip 3.77 kb, 450 downloads since 2016-10-03 

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How Can RunScript Command At Store in Database ?

It's not possible, run script using script )

Dmitry.

Re: How Can RunScript Command At Store in Database ?

Hello prahousefamily,


I'm afraid all you can do is :
1- add a colum to your table with just the color code (don't display in tablegrid)
2- get the color code with SQL query
3- pass the color code variable to the label like :

Form1.Label1.Font.Color := color_code;

Project modified is attached.


Have a good day


Mathias

Post's attachments

Attachment icon ScriptInDB.zip 3.77 kb, 487 downloads since 2016-10-04 

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: How Can RunScript Command At Store in Database ?

Hi mathmathou Thank You much .For  how to Fix big_smile

Um...  I think after  create project  long time ... i want save script  to database for call it in future
It easy to change , edit don't new compile again but  however  Now It's not possible cool

I hope Future have method can it

Thank You Dmitry. And mathmathou Again. big_smile

My Visual Database : I Love You
Easy For Beginner Student For Me