Link to home
Start Free TrialLog in
Avatar of isnoend2001
isnoend2001Flag for United States of America

asked on

Deleting reminders regarding Q28896820 vb6

i have a mshflexgrid that has rows of reminders the last column is the delete
if the reminder is deleted it sent to a Deleted Task folder(gDeletedtasks) then it is removed from the grid
the grids size is then reduced
The Deleted files name would be The Path & the text in the reminder Description column
if the file- name  exists then add a number to the file name(1) before the rtf extension
how to do this ?
to view deleted reminders a new button cmdDeletedReminders is needed and a new mshflexgrid
that cannot be edited will load the deleted reminders for viewing
28899508.zip
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

This could take a while. I'll probably be back with questions.
Avatar of isnoend2001

ASKER

ok
want me to help by creating-formating the new mshflexgrid and uploading ?
Sure. All you need to attach is the modified frmReminders.
will do
i wrote this
FormatDeletedGrid
cmdNewTask.Enabled = False ' don't know about this
end sub

this would probably be better for grids visible

Private Sub cmdNewTask_Click()
'probably better
If gridDeleted.Visible Then
   gridDeleted.Visible = False
   gridMaster.Visible = True
End If
have noticed this
when creating a new task if calendar is unloaded without selecting a date
then todays date is entered
sb
msgbox "You must select a date for this reminder"
then show the calendar again
or you know better
I know about that bug and I've fixed it. I had a list of bugs that I was working on earlier today and that was one of them.
also
if no details are entered for the task it should not continue without
at least a warning like this:
msgbox "you did not enter  details for this reminder"
To continue without entering details click OK
gstrTaskText  will be used' the text entered into inputbox
case cancel
show the reminder form details again
Why does there need to be details? I would think that all you would need sometimes is the reminder's description "Sister's birthday" to know everything you need to know about the reminder.
There does not have to be with the message i have entered, but if wanted you could enter
the yr born, place born and even an image if desired
have to run an errand be back in about 1-1/2 hrs
So is this OK?

If no details entered in frmTaskDetails and user clicks OK Then
    display a message that says "you did not enter details for this reminder. Continue? Press yes to exit or No to try again."
    If No is clicked then keep form open, otherwise exit the form.
i was thinking to sure something is entered
If rtfTask.Text = "" Then
Select Case MsgBox("You did not enter any details for this Reminder" _
                   & vbCrLf & "To continue without entering any details " _
                   & vbCrLf & "Click OK" _
                   & vbCrLf & gstrTaskText & " will be entered" _ 'the text entered into the input box
                   & vbCrLf & "to Cancel And enter details click cancel" _
                   & vbCrLf & "" _
                   & vbCrLf & "" _
                   , vbOKCancel Or vbQuestion Or vbDefaultButton1, "No Details Entered")

    Case vbOK
     rtfTask.Text = gstrTaskText
    Case vbCancel
       Cancel = 1
End Select
End If
If I read that correctly then the description will never be blank and it seems silly to me when I add a simple reminder called "simple reminder" that it winds up with "simple reminder" not only being the file name, but also the contents of the file. In essence you're forcing something to be placed in the rtf file. You're the boss so if you tell me to do it that way I will, but I don't like it.
the entry would have to checked in both
the ok button and the forms X
You are thinking wrong the name of the filename
"simple reminder" would never be part of the filename
the filename is created based on the date or time
the date in column 3 is part of the filename
say 11-25-2016 was in column 3 then the filename would be
C:\Program Files (x86)\Microsoft Visual Studio\VB15\Tasks\Personal\Tasks\11-25-2016.rtf
if a time in column 3
9:00 PM
filename would be
C:\Program Files (x86)\Microsoft Visual Studio\VB15\Tasks\Personal\Tasks\2100.rtf
the entry would have to checked in both
the ok button and the forms X
Sorry but I don't know what that means.

As for the file name I was thinking about the new plan for the names of deleted files which would be "simple reminder", but do you still think it's always necessary to have something in the rtf's description?
Sorry but I don't know what that means.
The forms unload Button X at the  right top corner of the form
re:
but do you still think it's always necessary to have something in the rtf's description?
yes the short description goes into the grid and the details go into the rtf
that way if the rows view is clicked something  will show in the rtf
if no entry then the rtf would be blank.
if its easier We could put "No details entered into the rtf" instead of
the input box text
we may not be communicating. I believe that the contents of the rtf file can be blank, but you seem to be saying that they can't. I'll do it your way.
ideally gstrTaskText the inputbox text if no user input
In frmDeletedReminders

What should the form show? The description?
What do you want to see when click the reminder? The content of the rtf file?
In frmDeletedReminders
The filename looks like this:
C:\Program Files (x86)\Microsoft Visual Studio\VB15\Tasks\Personal\Deleted Tasks\Doctors appointment.rtf
This rtf file holds the details
 i need the Doctors appointment without the .rtf extension  part of the file loaded into the mshflexgrid

What do you want to see when click the reminder? The content of the rtf file? in the view column Yes
Whoops there is no view column in that grid clicking the reminder will show the contenfs of the saved rtf file
if using another form for deleted reminders then we probably need another richtextbox
Shouldn't we be consistent and have a "View" column?

When the row is clicked or when View is clicked (one or the other) I can show the contents in frmTaskDetails but remove the ability to add or modify the contents, or I can show the contents on frmDeletedReminders in a new rtf control. Your choice. let me know.
re: Shouldn't we be consistent and have a "View" column?
yes you are right
i think just adding a new rtf would be best
ASKER CERTIFIED SOLUTION
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
re:
Save the file name under it's description rather than it's date,
you are referring to deleted files, right ?not new files

this may be a bug you are aware of and still plan fixing
new taskes are saved to gGridFolder
but sb saved to gTasksFolder
Save the file name under it's description rather than it's date,
you are referring to deleted files, right ?not new files
That's correct.

this may be a bug you are aware of and still plan fixing
new taskes are saved to gGridFolder
but sb saved to gTasksFolder
No I wasn't aware of that. What I mean is that I knew they were going to gGridFolder, but if you want that changed to gTasks folder I will.
yes only the mshflexgrid gets saved to gGridFolder
tasks are saved to gTasksFolder
do you think the grid for deleted files need saving or just created when opened ?
No need to save the grid. All that's needed are the deleted files themselves since they now have the description as their name. Did you see the workbook I posted in post ID: 41374324?

Going off to jury duty selection in a few minutes.
not a workbook  do mean the zip ?
the last app i got from you was 28900024.zip is that what you mean?
thanks, thought this was closed