Good day everyone.... Please help...
I have 5 pages in may pagframe, I need to put the cursor to my text1 to get input eveytime i run the form... shown are excerpts from my program... but every time i run the code it always tells "cannot change the modality of a visible form" What is the meaning of this?
PROCEDURE Init
SET TALK OFF
SET BELL OFF
SET CENTURY ON
SET CONFIRM OFF
SET SAFETY OFF
SET ECHO off
_screen.visible = .f.
_screen.borderstyle = 2
_screen.backcolor = rgb(0,0,0) && black
SELECT 3
USE smsrec exclusive ALIAS rek
SELECT 2
USE payments exclusive ALIAS pay
INDEX on idnum TO pidnumx
SELECT 1
USE sms exclusive ALIAS tsulat
INDEX on idnum TO idnumx
SET relation TO idnum INTO pay
thisform.pageframe1.page1.Activate
WITH thisform.pageframe1.page1
.text1.setfocus()
ENDWITH
ENDPROC
I have 5 pages in may pagframe, I need to put the cursor to my text1 to get input eveytime i run the form... shown are excerpts from my program... but every time i run the code it always tells "cannot change the modality of a visible form" What is the meaning of this?
PROCEDURE Init
SET TALK OFF
SET BELL OFF
SET CENTURY ON
SET CONFIRM OFF
SET SAFETY OFF
SET ECHO off
_screen.visible = .f.
_screen.borderstyle = 2
_screen.backcolor = rgb(0,0,0) && black
SELECT 3
USE smsrec exclusive ALIAS rek
SELECT 2
USE payments exclusive ALIAS pay
INDEX on idnum TO pidnumx
SELECT 1
USE sms exclusive ALIAS tsulat
INDEX on idnum TO idnumx
SET relation TO idnum INTO pay
thisform.pageframe1.page1.Activate
WITH thisform.pageframe1.page1
.text1.setfocus()
ENDWITH
ENDPROC