SQL*PLUS SET Command - sqlplus

Kindly remind me of how to set a pagesize to properly display rows in the command below;
SELECT * FROM ALL_TABLES;
The rows fetched are displayed accordingly.
Thanks

like this?
set PAGESIZE 60;
set LINESIZE 132;

Related

What determines default row height for a new file in Google Sheets?

I created a spreadsheet to act as a template. It's set up and working as expected.
When I copy the template to a new file (right click on tab > Copy to > New/existing spreadsheet) it copies the template to the new file, everything works as expected except the row heights are different in the two files.
I don't remember changing row height when I was making the template, but the two files are different - the template row width default is 17px and the new/existing copy has a default row height of 21px.
Where is the default row-height value set?
Or, how do I make sure the template exports the row height setting when copies are made?
Thanks in advance.
there is no setting for global width/height value.
but you are able to copy-paste it:

unable to select an item in cxImageComboBox1

I added 3 items to cxImageComboBox1.
Assigned ImageList1 for the images.
Looks like this :
At runtime it displays images correctly. However only the first image (1) can be selected. I can not select the '2' or '3' :
Why wont it allow me to make the selection ? I do not understand.
Also it wont allow me to set the ImageIndex to -1 so it displays empty at runtime.
You only set the descriptions. Try also setting the values.
You must make unique value for every Items (Set Value 1,2,3)

Issue with using ProtectContent - Spreadsheet gear

I am trying to make a selected cells of my excel to be editable and rest to be readonly.
Following is my code, I am trying to set the Locked property for the specified rows to be "False" and trying to protect the sheet
excl.WorkSheet(0).Range[0, myColumns.Count, rowCount + 2, myColumns.Count].Locked = false; // Unlock cells to not make them read-only by ProtectContents
excl.WorkSheet(0).ProtectContents = true; //Make all the locked cells read only
Say rowCount = 5, I would like to have the entire rows between 0-6 to be editable, but the rest of the fields in the workbook to be read-only.
But, the entire sheet ends up being protected rather than the cells that are locked only.
Can anyone please help me fix this
I did this and was able to achieve what I wanted, but I am eager to know any other way to do this as well
IRange rows = excl.WorkSheet(0).Cells[rowStart, myColumns.Count].EntireRow;
rows.Locked = false;
excl.WorkSheet(0).ProtectContents = true;

report.jrxml columnfooter to be shown below the details section

I have report.jrxml report generated from my application. Its only a one page report. I set the column footer and it is set at the end of the page and not immediately after the detail section. I have only couple of rows to be listed and I want the columnfooter to display immediately after the 2 rows of data.
I searched for a solution for this and they mention something about changing the property to floatcolumn header. I am not sure how you do that? I am writing this report.rxml from my IDE. Does anyone know the solution to this problem?
I am assuming you are using the Jasper Studio IDE.
In any case, you said you need the column footer to float i.e. change its position with the height of the Detail band.
You can find the property in the Report root node properties. In that go to Pagination, and there is the Float Column Footer property.
Otherwise, you can set the isFloatColumnFooter="true" attribute in the root node jasperReport of the JRXML.

How do I calculate the location of the selectedText with a LiveCode field?

I want to scroll the field so the selection is visible after resizing it. To do that I need to calculate the height from the top of the field that the selection is and then offset the current scroll to work out the new scroll. I can't assume a fixedLineHeight. Anyone have any clues?
After some searching in the dictionary I found the selectedLoc function. I ended up with the following code executed after each resize of the field which gives the behavior I wanted.
put item 2 of the selectedLoc-the scroll of pField into tSelectionHeight
if tSelectionHeight > the scroll of pField+the height of pField then
set the scroll of pField to tSelectionHeight-the height of pField
end if
In the event there's no selected location, the following also works. I use this in PowerDebug to center the breakpoint or current line of code in the debug window. (And yes, I realize I'm assuming the lineheight is consistent in the field).
command CenterDebugText pLinesToHilite
local tLineHeight, tFieldHeight
local tScroll
lock screen
set the hilitedlines of field kDebugFieldName of me to pLinesToHilite
-- center the breakpoint line in the display
-- calculate the number of visible script lines
put the effective textheight of field kDebugFieldName into tLineHeight
put the height of field kDebugFieldName into tFieldHeight
put tLineHeight * (item 1 of pLinesToHilite) into tScroll
subtract tFieldHeight / 2 from tScroll
set the vscroll of field kDebugFieldName to trunc(tScroll)
unlock screen
end CenterDebugText

Resources