Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Carlos Lima
  Where is Carlos Lima?
 Mindelo
 Cape Verde
 Carlos Lima
 Tags
Subject: messagebox()
Thread ID: 462296 Message ID: 462296 # Views: 67 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Databases, Tables and SQL Server
Date: Thursday, December 6, 2018 6:05:10 PM         
   


Good morning,
I have a table with the fields (port, order, date_chega, date_out)
I want to make a messagebox with the contents of the table, but I can not get the message aligned. Example.

My code:
a_viagem = viagens.numero
cabecalho = " Porto Ordem Chegada Saida"
a_mensagem = ''
SELECT portos_escala
LOCATE
SCAN
o_porto = PADL(portos_escala.porto,36)
a_escala = LTRIM(STR(portos_escala.ordem,1)) + SPACE(13) + DTOC(portos_escala.data_chega) + SPACE(7) + DTOC(portos_escala.data_saida)
a_linha = o_porto + a_escala
a_mensagem = a_mensagem + a_linha + chr(13)
ENDSCAN
MESSAGEBOX(cabecalho + chr(13) + chr(13) + a_mensagem,64+0+0,'Portos Escala da Viagem nÂș ' + a_viagem)



Thanks in advance

ENTIRE THREAD

messagebox() Posted by Carlos Lima @ 12/6/2018 6:05:10 PM
RE: messagebox() Posted by Tore Bleken @ 12/6/2018 6:16:39 PM
RE: messagebox() Posted by Carlos Lima @ 12/7/2018 10:42:18 AM
RE: messagebox() Posted by Tore Bleken @ 12/7/2018 10:58:25 AM
RE: messagebox() Posted by Jun Tangunan @ 12/6/2018 11:34:59 PM
RE: messagebox() Posted by Koen Piller @ 12/7/2018 1:15:19 PM
RE: messagebox() Posted by Tony Vignone @ 12/7/2018 7:19:55 PM
RE: messagebox() Posted by Tore Bleken @ 12/7/2018 7:24:19 PM
RE: messagebox() Posted by Tony Vignone @ 12/8/2018 3:15:14 PM