Question : Aligning Msgbox text

Hi All,

I have below code and please see the screen shot.

The problem is the "=" and the number are not align well.

What should I do?

Thank you.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
MsgBox("Limit Kredit Tidak Cukup ...!" & _
                   vbCrLf & _
                   "Sisa Piutang    = " & ERV_Global.Format_Number(dblSisaPiutang) & _
                   vbCrLf & _
                   "SO Belum Faktur = " & ERV_Global.Format_Number(dblSisaSOBelumFaktur) & _
                   vbCrLf & _
                   "Total           = " & ERV_Global.Format_Number(dblSisaSOBelumFaktur + dblSisaSOBelumFaktur) & _
                   vbCrLf & _
                   "Limit Kredit    = " & ERV_Global.Format_Number(dblLimitKredit) & _
                   vbCrLf & _
                   "Sisa Limit      = " & ERV_Global.Format_Number(dblLimitKredit - dblSisaSOBelumFaktur + dblSisaSOBelumFaktur) & _
                   vbCrLf, _
                   MsgBoxStyle.Information, Me.Text)

Answer : Aligning Msgbox text

This will align your = and numbers correctly.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
MsgBox("Limit Kredit Tidak Cukup ...!" & _
                   vbCrLf & _
                   "Sisa Piutang" & vbTab & "= " & ERV_Global.Format_Number(dblSisaPiutang) & _
                   vbCrLf & _
                   "SO Belum Faktur" & vbTab & "= " & ERV_Global.Format_Number(dblSisaSOBelumFaktur) & _
                   vbCrLf & _
                   "Total" & vbTab & vbTab & "= " & ERV_Global.Format_Number(dblSisaSOBelumFaktur + dblSisaSOBelumFaktur) & _
                   vbCrLf & _
                   "Limit Kredit" & vbTab & "= " & ERV_Global.Format_Number(dblLimitKredit) & _
                   vbCrLf & _
                   "Sisa Limit" & vbTab & vbTab & "= " & ERV_Global.Format_Number(dblLimitKredit - dblSisaSOBelumFaktur + dblSisaSOBelumFaktur) & _
                   vbCrLf, _
                   MsgBoxStyle.Information, Me.Text)
Random Solutions  
 
programming4us programming4us