PDA

View Full Version : Something Changed in Edit Fields Screen


greenace
02-14-2005, 03:43 PM
Until Recently I was able to read values from the registry and they would be displayed in a contact screen if the Default Text Value for the TextBox was set to %SessionVar%. Now this seems to have stopped working.

Perhaps I need to use a DlgEditField.SetProperties(nNameEditField, {Text = sName}); command - but why did this change.

greenace
02-14-2005, 04:00 PM
I tried this - and still cant make it work.

Perhaps my syntax is wrong.
DlgEditField.SetProperties(CTRL_EDIT_01, {Text = SessionVar.Expand("%ContactName%")});

but this works:

DlgEditField.SetProperties(CTRL_EDIT_02, {Text = "XYZ"});

Adam
02-15-2005, 01:43 PM
Try this:

CName = SessionVar.Expand("%ContactName%");
DlgEditField.SetProperties(CTRL_EDIT_02, {Text = CName});

This may work better.

Adam Kapilik