Jose Atariguano

All generations.

language from codeSat, 08 Apr 2023

Private Sub btnGuardar_Click(sender As Object, e As EventArgs) Handles btnGuardar.Click Try Dim persona As New Persona persona.id = Guid.NewGuid.ToString persona.cedula = txtCedula.Text persona.nombre = txtNombre.Text persona.apellido = txtApellido.Text persona.edad = CInt(txtEded.Text) persona.fechanacido = Date.Parse(txtFechaTransferencia.Text.FechaFormatoDb).ToString("yyyy-MM-dd") Dim resultado = Sistec.TraerDatos($"INSERT INTO personas VALUES('{persona.id}','{persona.cedula}','{persona.nombre}','{persona.apellido}','{persona.fechanacido}',{persona.edad},'A')") If resultado.Columns.Contains("Respuesta") Then Throw New Exception($"No se pudo grabar persona por : {resultado.Rows(0)("Respuesta")}") End If Listar() Catch ex As Exception msj.MostrarMensajeError($"ERROR: {ex.Message}") End Try End Sub

## Ejemplo de Listado

translateSat, 08 Apr 2023

crear una lista de objetos

typedef struct { char *name; int age; int height; int weight; } Person; Person *Person_create(char *name, int age, int height, int weight) { Person *who = malloc(sizeof(Person)); assert(who != NULL); who->name = strdup(name); who->age = age; who->height = height; who->weight = weight; return who; }

translateSat, 08 Apr 2023

crear una lista de objetos

public class Person { public string FirstName { get; set; } public string LastName { get; set; } public string Email { get; set; } } var peopleList = new List<Person>();

genera un formularioque agragr a una grid los atos seceuncialemte

<form id="form" class="grid-6"> <div class="col"> <label for="nome">Nome:</label> <input type="text" id="nome" name="nome" placeholder="Nome"> </div> <div class="col"> <label for="email">Email:</label> <input type="email" id="email" name="email" placeholder="Email"> </div> <div class="col"> <label for="nascimento">Nascimento:</label> <input type="text" id="nascimento" name="nascimento" placeholder="Nascimento"> </div> <div class="col"> <label for="telefone">Telefone:</label> <input type="text" id="telefone" name="telefone" placeholder="Telefone"> </div> </form>

generate functionSat, 08 Apr 2023

Hola mundo

function greet (name: string): string { return `Hello, ${name}` } greet('Alice') // returns 'Hello, Alice'

TypeScript
View

Questions about programming?Chat with your personal AI assistant