First, we need to declare the external function, called SetLocalTime from kernel32.dll
1: FUNCTION long SetLocalTime(ref str_SYSTEMTIME lpSystemTime ) LIBRARY "kernel32.dll" alias for "SetLocalTimeA"
To use the function, just pass a datetime variable when you call the function.
Example:
1: DataTime dtToday
2:
3: dtToday = DateTime(Today(),Now())
4: SetLocalTime(dtToday)
Great post which explains us how we can go for powerbuilding applications
ReplyDelete