segunda-feira, 16 de setembro de 2024

array sort composto - VIDEO 4134 - Webdev 2024 - Webdev - Array sort composto - 044

array sort composto - VIDEO 4134 - Webdev 2024 - Webdev - Array sort composto -  044








00:00:00 Introdução
00:00:07 Criando botao array sort composto 
00:00:18 Codigo array composto 
00:01:47 Testar pagina 
00:02:22 Propagandas e Video Encerramento



material_estrutura is Structure 
codigo is int 
nome is string
quantidade is currency 
END
linha_material_estrutura is material_estrutura 
array_material is array of material_estrutura
FOR EACH material 
linha_material_estrutura.codigo=material.materialID
linha_material_estrutura.nome=material.nome
linha_material_estrutura.quantidade=material.quantidade // novo
array_material.Add(linha_material_estrutura)
END
ArraySort(array_material,asMember,"quantidade;nome") // novo
TABLE_tabela.DeleteAll()
FOR EACH ELEMENT stlinha OF array_material
linha is int=TABLE_tabela.AddLine()
TABLE_tabela[linha].COL_Column1=stlinha.codigo
TABLE_tabela[linha].COL_Column2=stlinha.nome
TABLE_tabela[linha].COL_Column3=stlinha.quantidade // novo
END





Indice tabela

















array is structure - VIDEO 4133 - Webdev 2024 - Webdev - Array com estrutura - 043

Table criar - VIDEO 4133 - Webdev 2024 - Webdev - Criar tabela manual com array -  043





00:00:00 Introdução
00:00:08 Criando botao para criar array 
00:00:19 Fazer codigo array com estrutura 
00:02:15 Testar pagina 
00:02:23 Propagandas e Video Encerramento




material_estrutura is Structure 
codigo is int 
nome is string
END
linha_material_estrutura is material_estrutura
array_material is array of material_estrutura
FOR EACH material 
linha_material_estrutura.codigo=material.materialID
linha_material_estrutura.nome=material.nome
array_material.Add(linha_material_estrutura)
END
TABLE_tabela.DeleteAll()
FOR EACH ELEMENT stlinha OF array_material
linha is int=TABLE_tabela.AddLine()
TABLE_tabela[linha].COL_Column1=stlinha.codigo
TABLE_tabela[linha].COL_Column2=stlinha.nome
END



Indice tabela





Teste

Teste
teste