Translation

sample_code.xhp par_id3153032 help.text
English uREk8
Context English Norwegian Nynorsk Actions
read_write_values.xhp
par_id581633265527001
help.text
' Gets access to the current Calc document ' Får tilgang til det gjeldande Calc-dokumentet
read_write_values.xhp
par_id751633265527427
help.text
' Sets the value of cells A1 and A2 ' Set verdien for cellene A1 og A2
read_write_values.xhp
par_id781633267324929
help.text
The <literal>setValue</literal> method can be used to set both numeric and text values. To set a cell formula, use the <literal>setFormula</literal> method. Metoden <literal>setValue</literal> kan brukast til å setja både numeriske- og tekstverdiar. For å setja ein celleformel, bruk metoden <literal>setFormula</literal>.
read_write_values.xhp
par_id251633265634883
help.text
With the Calc service, getting and setting cell values can be done with a single line of code. The example below gets the value from cell "A1" and shows it on a message box. Med Calc-tenesta kan henting og setjing av celleverdiar gjerast med ei enkelt kodelinje. Eksemplet nedanfor hentar verdien frå celle «A1» og viser han i ein meldingsboks.
read_write_values.xhp
par_id521633608223310
help.text
The ScriptForge library also makes it simpler to access ranges in different sheets, as demonstrated in the example below: ScriptForge-biblioteket gjer det også enklare å få tilgang til område i ulike ark, som vist i eksemplet nedanfor:
read_write_values.xhp
bas_id521633608366292
help.text
' Gets cell "A1" from the sheet named "Sheet1" ' Hentar cella «A1» frå arket «Ark1»
read_write_values.xhp
bas_id661633608366484
help.text
' Gets cell "B3" from the sheet named "Sheet2" ' Hentar cella «B3» frå arket «Ark2»
read_write_values.xhp
bas_id501633608516381
help.text
' Places the result into cell "A1" of sheet "Report" ' Set resultatet i cella «A1» i arket «Rapport»
read_write_values.xhp
par_id431633266057163
help.text
The examples above can also be implemented in Python as follows: Eksempla ovanfor kan brukast slik i Python:
sample_code.xhp
tit
help.text
Programming Examples for Controls in the Dialog Editor Programmeringseksempel for kontrollelementa
sample_code.xhp
bm_id3155338
help.text
<bookmark_value>programming examples for controls</bookmark_value> <bookmark_value>dialogs;loading (example)</bookmark_value> <bookmark_value>dialogs;displaying (example)</bookmark_value> <bookmark_value>controls;reading or editing properties (example)</bookmark_value> <bookmark_value>list boxes;removing entries from (example)</bookmark_value> <bookmark_value>list boxes;adding entries to (example)</bookmark_value> <bookmark_value>examples; programming controls</bookmark_value> <bookmark_value>dialog editor;programming examples for controls</bookmark_value> <bookmark_value>Tools;LoadDialog</bookmark_value> <bookmark_value>programeringseksempel for kontrollelement</bookmark_value> <bookmark_value>dialogar;lasta inn (eksempel)</bookmark_value> <bookmark_value>dialogar;visa (eksempel)</bookmark_value> <bookmark_value>kontrollelement;lesa eller redigera eigenskapar (eksempel)</bookmark_value> <bookmark_value>listeboksar;fjerna oppføringar frå (eksempel)</bookmark_value> <bookmark_value>listeboksar;leggja til oppføringar (eksempel)</bookmark_value> <bookmark_value>eksempel; programeringskontrollar</bookmark_value> <bookmark_value>dialogredigering;programmera eksempel for kontrollelement</bookmark_value> <bookmark_value>verktøy;dialogvindauge for last inn</bookmark_value>
sample_code.xhp
hd_id3155338
help.text
<variable id="sample_code"><link href="text/sbasic/guide/sample_code.xhp" name="Programming Examples for Controls in the Dialog Editor">Programming Examples for Controls in the Dialog Editor</link> </variable> <variable id="sample_code"><link href="text/sbasic/guide/sample_code.xhp" name="Programming Examples for Controls in the Dialog Editor">Programmeringseksempel for kontrollar i redigeringa av dialogvindauge.</link></variable>
sample_code.xhp
par_id3153031
help.text
The following examples are for a new <link href="text/sbasic/guide/create_dialog.xhp" name="dialog">dialog</link> called "Dialog1". Use the tools on the <emph>Toolbox</emph> bar in the dialog editor to create the dialog and add the following controls: a <emph>Check Box</emph> called "CheckBox1", a <emph>Label Field</emph> called "Label1", a <emph>Button</emph> called "CommandButton1", and a <emph>List Box</emph> called "ListBox1". Eksempla nedanfor skildrar eit nytt <link href="text/sbasic/guide/create_dialog.xhp" name="dialog">dialogvindauge</link> kalla «Dialog1». Bruk kontrollelementa på verktøylinja <emph>Verktøykasse</emph> i dialogredigeringa for å lage dialogvindauget og leggja til følgjande kontrollelement: ein <emph>Avkryssingsboks</emph> kalla «CheckBox1», eit <emph>Etikettfelt</emph> kalla «Label1», ein <emph>Knapp</emph> kalla «CommandButton1» og ein <emph>Listeboks</emph> kalla «ListBox1».
sample_code.xhp
par_id3154141
help.text
Be consistent with uppercase and lowercase letter when you attach a control to an object variable. Ver konsekvent med små/store bokstavar når du koplar eit kontrollelement til ein objekt-variabel.
sample_code.xhp
hd_id3154909
help.text
Global Function for Loading Dialogs Global funksjon for å lasta inn dialogvindauge
sample_code.xhp
par_id3153032
help.text
<literal>LoadDialog</literal> function is stored in <literal>Tools.ModuleControls</literal> available from Application Macros and Dialogs.
sample_code.xhp
hd_id3149412
help.text
Displaying a Dialog Vising av eit dialogvindauge
sample_code.xhp
par_id3145801
help.text
REM global definition of variables REM global definisjon av variablar
sample_code.xhp
hd_id3150042
help.text
Read or Edit Properties of Controls in the Program Sjå på eller redigera eigenskapane til kontrollelementa i eit program
sample_code.xhp
par_id3145232
help.text
REM get dialog model REM hent dialogmodell
sample_code.xhp
par_id3154021
help.text
REM display text of Label1 REM vis tekst for Label1
sample_code.xhp
par_id3151277
help.text
REM set new text for control Label1 REM set ny tekst for kontroll Label1
sample_code.xhp
par_id3154119
help.text
oLabel1.Text = "New Files" oLabel1.Text = "New Files"
sample_code.xhp
par_id3155115
help.text
REM display model properties for the control CheckBox1 REM vis modelleigenskapane for Avkryssingsboks1
sample_code.xhp
par_id3149817
help.text
REM set new state for CheckBox1 for model of control REM set ny tilstand for Avkryssingsboks1 til kontrollmodell
sample_code.xhp
par_id3159102
help.text
REM display model properties for control CommandButton1 REM vis modelleigenskapane for Kommandoknapp1
sample_code.xhp
par_id3150368
help.text
REM display properties of control CommandButton1 REM vis modelleigenskapane for Kommandoknapp1
sample_code.xhp
par_id3150201
help.text
REM execute dialog REM opna dialogvindauget
sample_code.xhp
hd_id3145387
help.text
Add an Entry to a ListBox Skriv inn i ein listeboks
sample_code.xhp
par_id3148700
help.text
REM adds a new entry to the ListBox REM legg til eit nytt innslag i listeboksen
sample_code.xhp
par_id3144504
help.text
oListbox.additem("New Item" & iCount,0) oListbox.additem("New Item" & iCount,0)

Loading…

No matching activity found.
Browse all component changes

Glossary

English Norwegian Nynorsk
No related strings found in the glossary.

String information

Context
sample_code.xhp
par_id3153032
help.text
Source string description
uREk8
Source string location
sample_code.xhp
String age
3 months ago
Source string age
3 months ago
Translation file
nn/helpcontent2/source/text/sbasic/guide.po, string 182