error CS1061: Type `UnityEngine.GameObject' does not contain a definition for `newpos' and no extension method `newpos' of type `UnityEngine.GameObject' could be found

I am trying to access the code through it name,but i am unable can u suggest how i can set the name object and access through code…

using UnityEngine;
using System.Collections;

public class practice : MonoBehaviour {


  public Vector3 newpos;
	public float k =-2844.5f;


Vector3 posVector;
	public bool show = false;


public GameObject PlayButton;
// Use this for initialization


void Start () {
		

                  
    	       newpos = transform.position;

		print("newpos x "+newpos.x+"y "+newpos.y+"z "+newpos.z); 
		
	}
	
// Update is called once per frame


void Update () {
         
	PlayButton.newpos.x += 20.5f;		
	
	

k +=20.5f;
	

if(!show)
		{
		 movement();
		}
}


void movement()
{
	

if(k <-1402.9739f)
		{
		 transform.position= newpos;
			 // transform.position = Vector3.Lerp(currpos, newpos, Time.time);
		}
	

else if(k >= -1402.9739f)
		{
			show = true;
		}
	}

}

I would think your error comes from:

PlayButton.newpos.x += 20.5f;

If PlayButton has newpos variable you need to use GetComponent

PlayButtonScriptName script;

void Start(){
    script = GameObject.Find("PlayButton").GetComponent<PlayButtonScriptName>();
} 

void Update(){
   script.newpos.x +=20;
}

This will work if you explicitly declared newpos public as C# uses private as default.

do u work on EZGUI?..