Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:18:49+00:00 2026-06-18T08:18:49+00:00

I have an array which is in range E10:O10 and when I enter the

  • 0

I have an array which is in range E10:O10 and when I enter the following script:

var array1 = ss.getRange('E10:O10').getValues();
Logger.log(array1)
for (var i in array1)
{
panel.add(app.createLabel(array1), 10, 12);  
//Can I do something with array1.length + '' in here to split the values?
}

The array comes up with commas between them. Is there any way to split them up and define the pixel width or do you need to use array1.length?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:18:50+00:00Added an answer on June 18, 2026 at 8:18 am

    Arrays retrieved with getValues are two dimensions even when only one row is extracted. Something like:

    var array1 = ss.getRange('E10:O10').getValues();
    Logger.log(array1)
    for (var i = 0; i < array1[0].length; i++ )
    {
    panel.add(app.createLabel(array1[0][i], 10, 12);  
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array which contains data within range -255 to +255.e.g. The array
Following situation: I have an array with some constant values, which represent ranges. A
Say I have the following setup: x=np.array(range(0,100)) y=x**0.5 z=x**2 How could I get all
I have an array with the following data var a = [1,2,3,4,5,6,7] I am
I have some code which builds an array of date ranges. I then call
I have an array which looks like this: $arr = ( [0]=>Int(2) [1]=>Array( ....)
I have an array which looks like this: $data = array( array('timestamp' => 1312776000,
I have an array which I want to use in a query: Array (
I have an array which contains 12 numbers and I want to save this
I have an array which has many values in it . I just wanted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.