Select to view content in your preferred language

Click the button and capture time in ArcPad

1385
1
04-30-2012 07:21 AM
SarawutTangadunrat
Deactivated User
Hello All,

Does anyone know how to make this work? I'm trying to create a custom button that when the user click the current time will be captured into a text box (next to the button). So far I try the following code, but it didn't work;

Dim pTheControls
Set pTheControls = ThisEvent.Object.Controls
Set pTheControls("txtStart").Value = FormatDateTime(Now, 3)

I placed this code under onclick event of the button (btnstart). Can someone point me to the right direction please?

Thanks,
Eddie

[ATTACH=CONFIG]13941[/ATTACH]
Tags (3)
0 Kudos
1 Reply
ThaiTruong
Deactivated User
Try this, I think it should work for you:

Dim pTheControls
Set pTheControls = ThisEvent.Object.Parent.Controls 
pTheControls("txtStart").Value = FormatDateTime(Now, 3)
Set pTheControls= Nothing
0 Kudos