Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locate not working right
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00669297
Message ID:
00669914
Views:
10
Before I used the command locate I moved the setfocus to a command button, but it didn't make any difference.
		SELECT MAX(lv_veh_assign.a_uniqueid) FROM lv_veh_assign ;
			WHERE lv_veh_assign.a_id = .a INTO array a__gen12
		zx = a__gen12(1,1)
		.pf1.p3.cmdaddassign.setfocus()
		LOCATE FOR lv_veh_assign.a_uniqueid = zx
		RELEASE a__gen12
		thisform.f = lv_veh_assign.a_uniqueid
		.pf1.p3.cmddelassign.visible = .t.				
		.pf1.p3.refresh()
Thanks
Nick Patel


>Yes your grid is moving the record pointer on you. Take focus out of the grid before you do this code.
Previous
Reply
Map
View

Click here to load this message in the networking platform