syntax to move body based on x,y

i cant move the body based on x,y say my x is increasing after 1 sec
but i dont know the syntax i did this

bodyca.position.SetXfrom(x,0) // not working

bodyca.position.Set(x,0)// not working
Each frame after your step, increment the body X position by 1 unit.

body->SetTransform(body->GetPosition().x+1.0f,body->GetPosition().y,body->GetAngle());

Original thread: https://box2d.org/forum/viewtopic.php?t=5535