i am trying to delete a value from a field/menu button that have the same value with the other field/menu button
which mean
the same value of the 2 field/ menu button would be gone if i delete anyone of them.
thanks
cheers



Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
sorry but how to you set the lineOffset?shaosean wrote:- put the text of the field/menu into a variable
- put the lineOffset into a variable
- if the lineOffset variable is greater than 0; delete line (lineOffsetVariable) of (fieldMenuVariable)
- set the text of the field/menu to (fieldMenuVariable)
Code: Select all
put selectedText of field "dbDrop" into dropDb
put lineOffset(dropDb,asd) into setline
if the lineOffset variable is greater than 0; delete line (setline) of field "existDB"
Code: Select all
put selectedText of field "dbDrop" into dropDb
put lineOffset(dropDb,asd) into setline
if setline <> 0 then delete line setline of field "existDB"
hijmburnod wrote:Hi pidobearBUSsb9q,
This script should work:
Best regardsCode: Select all
put selectedText of field "dbDrop" into dropDb put lineOffset[b](dropDb,asd[/b]) into setline if setline <> 0 then delete line setline of field "existDB"
Jean-Marc
Yes, it can be donepidobearBUSsb9q wrote:How do i set the datagrid column names same as the database when i switch database to view?
can it be done?
HiKlaus wrote:Yes, it can be donepidobearBUSsb9q wrote:How do i set the datagrid column names same as the database when i switch database to view?
can it be done?
You can set the names of the columns and also the label of the columns:
...
## Rename the internal naming:
set the dgProp["columns"] of group "Data Grid" to your_CR_separated_list_of_new_column_names
...
## Only change the display of the column headers:
set the dgProp["column labels"] of group "Data Grid" to your_CR_separated_list_of_new_column_LABELS
...
I strongly recommend that you download the manual for the data grid and work through it!
Get the PDF here:
http://lessons.runrev.com/m/datagrid
And of course these great stacks:
http://www.runrev.com/developers/lesson ... nferences/
Best
Klaus
hmm, when neccessarypidobearBUSsb9q wrote:...where to i put this (your_CR_separated_list_of_new_column_names)?