NetTalk Central

Author Topic: How to justify Prompt to Left in code?  (Read 2534 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
How to justify Prompt to Left in code?
« on: June 20, 2013, 10:13:23 PM »
Hi Bruce

I need to change some prompt descriptions in code. I use the "2 Prompt Routine Start" embed point with the following code:

      packet = clip(packet) & p_web.DivHeader('WUpdPDetailsExtra_' & p_web._nocolon('OptionON') & '_prompt',loc:fieldClass,Net:NoSend)
      loc:prompt = Choose(1=0,'',p_web.Translate('Unit Premium:'))
      packet = clip(packet) & p_web.DivFooter(Net:NoSend)

This is working fine but the prompt is now right-justified. How can I get it left-justified in the above code?

Regards
Johan

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: How to justify Prompt to Left in code?
« Reply #1 on: June 20, 2013, 11:06:43 PM »
johan I just make my prompt a session variable (not text) and then change the session variable in code.

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: How to justify Prompt to Left in code?
« Reply #2 on: June 20, 2013, 11:21:30 PM »
Tanks Kevin I will try the session Variables

I found the solution in the above code by adding 'nt-left' before loc:fieldClass:

packet = clip(packet) & p_web.DivHeader('WUpdPDetailsExtra_' & p_web._nocolon('OptionON') & '_prompt','nt-left',loc:fieldClass,Net:NoSend)