Search found 148 matches

by karmacomposer
Fri Jul 20, 2018 5:45 am
Forum: Talking LiveCode
Topic: Math - ugh - How to add up fields of strings
Replies: 0
Views: 4

Math - ugh - How to add up fields of strings

I have four text fields for the user to enter dollar amounts - hopefully no $ (do we use the delimiter to parse out a possible "$" - must be only numbers Here is what I wrote (I KNOW it's wrong): --Premium Subtotal Calculation put the value of field "fldBiWeekPrem1" into varPrem1Add put the value of...
by karmacomposer
Fri Jul 20, 2018 5:04 am
Forum: Talking LiveCode
Topic: [SOLVED] How do I put the chosen item of a combo box or list box into a variable?
Replies: 8
Views: 53

Re: How do I put the chosen item of a combo box or list box into a variable?

Thank you. That did it! Before I mark this solved, is there a way to auto find a state in the list if the user types a set of letters, for example, without even dropping down the list, I press 'F' and Florida comes up. How would I do this? Also, does LiveCode have a auto-complete feature such that i...
by karmacomposer
Fri Jul 20, 2018 4:48 am
Forum: Talking LiveCode
Topic: [SOLVED] How do I put the chosen item of a combo box or list box into a variable?
Replies: 8
Views: 53

Re: How do I put the chosen item of a combo box or list box into a variable?

That threw an error in the compiler.

The control is a drop down list - not a field.

In fact, I was wrong - the field name is cbState

Still throws an error when I changed it to the correct name.

Mike
by karmacomposer
Fri Jul 20, 2018 4:42 am
Forum: Talking LiveCode
Topic: [SOLVED] How do I put the chosen item of a combo box or list box into a variable?
Replies: 8
Views: 53

Re: How do I put the chosen item of a combo box or list box into a variable?

OK, I got it working, but one last problem. I would like to write the result back to the control. I wrote this: set the text of field "fldState" to it However, it's a combobox (dropdown list) - how do I write the variable varState back to the control so it shows? Do I use the label command to change...
by karmacomposer
Fri Jul 20, 2018 4:18 am
Forum: Talking LiveCode
Topic: [SOLVED] Auto populate date/time in a field - not working???
Replies: 7
Views: 39

Re: Auto populate date/time in a field - not working???

I got it working by attaching it to a necessary button to write to the database - not really what I wanted but it works and it's automatic.

Mike
by karmacomposer
Fri Jul 20, 2018 4:07 am
Forum: Talking LiveCode
Topic: [SOLVED] Auto populate date/time in a field - not working???
Replies: 7
Views: 39

Re: Auto populate date/time in a field - not working???

OK. Very weird - I even tried a new text box field and it still did not work.

What would be a way to get the current date and time to auto populate a field? Which control should I use?

Mike
by karmacomposer
Fri Jul 20, 2018 3:43 am
Forum: Talking LiveCode
Topic: [SOLVED] Auto populate date/time in a field - not working???
Replies: 7
Views: 39

Re: Auto populate date/time in a field - not working???

Should I put this in the card or stack script?

So weird - it's simply not populating that field.

Yes, I did check the properties, font and color to make sure it's not set to invisible or white on white.

Mike
by karmacomposer
Fri Jul 20, 2018 3:35 am
Forum: Talking LiveCode
Topic: [SOLVED] Auto populate date/time in a field - not working???
Replies: 7
Views: 39

Re: Auto populate date/time in a field - not working???

I will say that the field mentioned is part of a group of controls - could that be it? It's simply not working for me.

Mike
by karmacomposer
Fri Jul 20, 2018 3:19 am
Forum: Talking LiveCode
Topic: [SOLVED] Auto populate date/time in a field - not working???
Replies: 7
Views: 39

[SOLVED] Auto populate date/time in a field - not working???

I can't figure out why this does not work? It's supposed to pre-populate a field with the current date/time on preOpenCard put the long date into varNowDate set the text of field "fldDateAllottStart" to varNowDate end preOpenCard I am using the variable varNowDate because I need to write that variab...
by karmacomposer
Fri Jul 20, 2018 2:33 am
Forum: Talking LiveCode
Topic: Is there a way to convert an entire card to pdf and email it?
Replies: 1
Views: 21

Is there a way to convert an entire card to pdf and email it?

I saw Quartam's PDF Library add on, but when I looked at the demo, it seems to recreate a form. I have a VERY COMPLEX form I am working on in LiveCode. The process is: the user will add data and then press the submit button, which will write the data to a database and email a client a copy of the fo...
by karmacomposer
Fri Jul 20, 2018 2:21 am
Forum: Talking LiveCode
Topic: [SOLVED] How do I put the results of a checkbox into a variable
Replies: 3
Views: 37

[SOLVED] How do I put the results of a checkbox into a variable

I have the following, which works (I think): get the hilited of button "ckNewClient" How do I now put that into a variable? I tried: get the hilited of button "ckNewClient" and put it into varNewClient Did not work. What is the correct syntax please? I do look these things up in google and the LiveC...
by karmacomposer
Fri Jul 20, 2018 1:55 am
Forum: Talking LiveCode
Topic: [SOLVED] How do I put the chosen item of a combo box or list box into a variable?
Replies: 8
Views: 53

[SOLVED] How do I put the chosen item of a combo box or list box into a variable?

I have a combo box (drop down list) with US states and I need to put that into a variable. In another button, I need to do something with that same variable. I did the following: on menuPick pChosenItem, pPreviousTab global varState put pChosenItem into varState --answer varState with "ok" end menuP...
by karmacomposer
Fri Jul 20, 2018 1:42 am
Forum: Talking LiveCode
Topic: How do I hide all but the last four digits with either a "*" or a bullet?
Replies: 2
Views: 25

How do I hide all but the last four digits with either a "*" or a bullet?

How do I hide all but the last four digits with either a "*" or a bullet? I have a SSN and when a user reads it back (database style), I need the LiveCode app to hide all but the last four digits with either a "*" or a bullet. From my last question, and thanks to Bogs, I see that a item delimeter of...

Go to advanced search