I’ve got a section of code that asks three things from the user:
Date of a meeting, a charge number, and to select a previous date from a list generated by the code (so we can pull the old data and it can be updated). It looks like this:
reviewdatestr = uiws.Prompt ( 3 , "Date" , "What is the date of the review meeting? (MM/DD/YYYY)" )
reviewdatestr = Format ( Cdat ( reviewdatestr ) , "General Date" )
If reviewdatestr = "" Then Exit Sub
gostr = uiws.Prompt ( 3 , "GO" , "What is the GO Number for which you wish to create a program review chart?" )
If gostr = "" Then Exit Sub
'=================================================
'Find out which review they want to pull the archive data from
vardatelist = Evaluate ( "@DbColumn( Notes : ""NoCache"" ; """" : """" ; ""Program Review"" ; 1 )" )
strfromwhen = uiws.Prompt ( 4 , "Last Review" , "Select the date of the last review from the following list:" , "" , vardatelist )
’ strfromwhen = uiws.Prompt ( 3 , “Last Review” , “Enter the date of the last review:” , “” )
If strfromwhen = "" Then
intresp = uiws.Prompt ( 2 , "No Previous Date Chosen" , "You did not select a previous review date. Do you want to create blank charts?" )
If intresp <> 1 Then Exit Sub
varuselast = False
Else
varuselast = True
End If
Everything works but the last Prompt (type 4). It comes up and asks for all the data just like I expect it to. The commented out line below it is a test I did - can I put a type 3 (OKCANCELEDIT) in there and have it work? Yes, I can.
When this has happened before it’s always been because I made a typo or a structural mistake in the prompt code. I’ve recreated it, copying directly from the section of the help files. No change, it still doesn’t work.
The really frustrating part is, it worked yesterday. I tested it, and it asked me. I came in this morning and it didn’t work. I’ve debugged and vardatelist is populated with my values, everything is doing just what I want it to, it just skips over the code where I want them to get a list so they can choose a previous date.
Anyone have any ideas? This is so basic, and I’m just not getting what the problem could be.