Page 1 of 1

Saving changes in a table

Posted: Wed Dec 21, 2011 5:34 pm
by david_ff
Novice time: I am running Revolution 2.1.2 and just discovered the ability to convert a field into a table, and it was very easy to copy data from Excel and paste it into the table. The trouble comes when I try to change the data in a table: I cannot get the changes to stick. If I delete a row, it momentarily vanishes, then if I click outside the table it reappears. Same if I change the color of a row. This happens whether I effect these changes in the message board (i.e., delete row 4 of fld "aaa") or in a script:
on mouseup
put the clickline into jj
put word 2 of jj into jj
if the optionkey is down AND THE SHIFTKEY IS DOWN then
set the textcolor of LINE JJ OF FLD "AAA" to red
end if
end mouseup
Are there any incantations or magic words (i.e., code) that can get this table to behave itself?
____________________________
(2 days later) I just found a simple work-around to this problem:
Since changes in the actual text in each cell are saved, as opposed to 'delete...' :
on mouseup
put the clickline into jj
put word 2 of jj into jj
if the optionkey is down AND THE SHIFTKEY IS DOWN then
repeat with x = number of words of line jj of fld "aaa" down to 1
put " " into word x of line jj of fld "aaa"
end repeat
end if
end mouseup
Crude perhaps, but it serves my purposes.

Re: Saving changes in a table

Posted: Wed Dec 21, 2011 5:58 pm
by Klaus
Hi David,

this is everything but OFF-TOPIC, so I will move this thread to the correct forum! 8)


Best

Klaus