Virtual Pascal

Classic Object Pascal for free

Barry Day
  • Male
  • Brisbane, Qld
  • Australia

Barry Day's Friends

  • Alcatiz

Barry Day's Discussions

...Code to build/display a typical hierarchy pls
4 Replies

G'day Folks,Does anyone have the code to build/display a typical hierarchy pls ?To clarify, I'm thinking of the sort of thing you'd find in a business to display who's in charge of whom/what…Continue

Started this discussion. Last reply by Barry Day Nov 26, 2016.

Deleting to the Windows Recycle bin - SOLVED!

G'day All,Following on from Alcatiz's suggestion, I tried to implement the call in a unit - but ran into various problems trying to define a function as 'External' .. within the unit.     In short it…Continue

Started Oct 31, 2015

Deleting to the (Windows) Recycle bin rather than ..permanently ... is there a way to do this pls?
2 Replies

G'day All,Deleting to the (Windows) Recycle bin rather than ..permanently ... is there a way to do this pls?That says it all I think :-) NB: This is running in batch mode - ie: "Compatible with…Continue

Started this discussion. Last reply by Barry Day Oct 25, 2015.

VP & Win 10 ... permissions issue(s)..
3 Replies

G'day Folks,Is anyone else experiencing issues with compiling, debugging  etcunder W10?.. (Both x32 & 64 are giving me ..heartburn)!Or, more to the point, does anyone have a foolproof…Continue

Started this discussion. Last reply by Barry Day Aug 31, 2015.

Gifts Received

Gift

Barry Day has not received any gifts yet

Give a Gift

 

Barry Day's Page

Latest Activity

Barry Day posted a discussion

Deleting to the Windows Recycle bin - SOLVED!

G'day All,Following on from Alcatiz's suggestion, I tried to implement the call in a unit - but ran into various problems trying to define a function as 'External' .. within the unit.     In short it was a no go.However, it turns out the desired (Windows) function "SHFileOperation" is already available in the VP UnitShellAPI .. and so doesn't need to be defined (as an external), seperately.Thus, as long as the setup stuff is done (as illustrated in Alcatiz's program), the call to…See More
Oct 31, 2015
Barry Day replied to Barry Day's discussion Deleting to the (Windows) Recycle bin rather than ..permanently ... is there a way to do this pls?
"G'day JL, Thanks for that - I'll give it a go later today. Cheers Barry"
Oct 25, 2015
Alcatiz replied to Barry Day's discussion Deleting to the (Windows) Recycle bin rather than ..permanently ... is there a way to do this pls?
"D'day Barry, You can use the SHFileOperation function :"
Oct 25, 2015
Barry Day posted a discussion

Deleting to the (Windows) Recycle bin rather than ..permanently ... is there a way to do this pls?

G'day All,Deleting to the (Windows) Recycle bin rather than ..permanently ... is there a way to do this pls?That says it all I think :-) NB: This is running in batch mode - ie: "Compatible with GUI"At the moment I have to "delete", by "renaming" a file to the folder "\MyRecycleBin" that I set up - vs the one managed in Windows. It's just another folder with an obvious name - nothing special about it.However this technique at least preserves the original folder structure that the file resided…See More
Oct 8, 2015
Roland Chastain replied to Barry Day's discussion Does anyone have code to create a (windows) popup box providing an editable line - whch is returned to the VP program pls?
"Thank you, Alcatiz.  "
Jan 14, 2014
Alcatiz replied to Barry Day's discussion Does anyone have code to create a (windows) popup box providing an editable line - whch is returned to the VP program pls?
"A good way to do this is to use a tDlgWindow as main window. If you need many options, as the InputBox you found, you can create controls or edit their properties dynamically."
Jan 13, 2014
Roland Chastain replied to Barry Day's discussion Does anyone have code to create a (windows) popup box providing an editable line - whch is returned to the VP program pls?
"Thank you for your answer, Alcatiz. Yes, one would think that you are a real Australian man. :) Indeed, the tool looks simple, but it's very well done. I was simply wondering if I could open a tFileNameDlg directly from a console application,…"
Jan 11, 2014
Alcatiz replied to Barry Day's discussion Does anyone have code to create a (windows) popup box providing an editable line - whch is returned to the VP program pls?
"G'day Roland - you see Barry taught me some Strine ! :) So you mean a program, called within a process, displaying a dialog box ? It must be possible. The tool you found seems to be powerful. Regards, Alcatiz"
Jan 11, 2014
Roland Chastain replied to Barry Day's discussion Does anyone have code to create a (windows) popup box providing an editable line - whch is returned to the VP program pls?
"Hello gentlemen ! I had not visited the forum for a while, and I am glad to find an Alcatiz's code example today. @Alcatiz Would it be possible to turn your dialog box in a stand-alone program like this one : InputBox Best regards. Roland"
Jan 10, 2014
Barry Day replied to Barry Day's discussion Strange crash on using .. "Now" !!
"G'day Marco,Yes .. I spoke too soon  <sigh> ....It did indeed *appear* to have solved the problem, as it then ran perfectly.And I was ...overjoyed!   ...since it had been driving me nuts!  :-))But .. (isn't there…"
Oct 10, 2013
Marco van de Voort replied to Barry Day's discussion Strange crash on using .. "Now" !!
"It was not meant as a solution, but as a diagnostic aid. IOW if the exception location shifted the problem wasn't in the NOW but in whatever floating point code was executed before NOW. If the problem suddenly goes away probably hints that…"
Oct 9, 2013
Barry Day replied to Barry Day's discussion Strange crash on using .. "Now" !!
"G'day Marco, Genius!      That solved it 100% ....  No exception now...   Many Thanks! But .. pls tell us all why it's necessary. NB: It's true that my mickey-mouse program was using the FPU as…"
Oct 9, 2013
Marco van de Voort replied to Barry Day's discussion Strange crash on using .. "Now" !!
"put an asm fwait; end; in code just before the now() call, and see if the exception happens there instead of the now."
Oct 8, 2013
Robert AH Prins replied to Barry Day's discussion Strange crash on using .. "Now" !!
"ST(0) contains 2**63-1, which is kind of suspicious... Do you know where you are in the RTL - now on holiday at the other end of Europe, will be able to help more next week when I'm home."
Oct 8, 2013
Barry Day replied to Barry Day's discussion Strange crash on using .. "Now" !!
"Aha!  .. I didn't realise there was a panel to view the FPU etc  ...it helps to RTFM eh? :-)) So .. here is the debugger screen output showing the exception etc ... NB: It will be necessary to cut'n'paste this into Notepad…"
Oct 7, 2013
Barry Day replied to Barry Day's discussion Strange crash on using .. "Now" !!
"G'day Robert, Thanks for the reply. It occurs in VP code somewhere (part of the system function behind "Now").   So I don't know the answer about which floating point type. Also... I can only "see" the VP…"
Oct 7, 2013

Profile Information

Country:
Australia
Pascal interest:
User of VP
Favorite Programming Languages:
Pascal Assembler
Prove you are human and name one of your favourite programming mechanisms
assign

Comment Wall

  • No comments yet!

You need to be a member of Virtual Pascal to add comments!

Join Virtual Pascal

 
 
 

© 2017   Created by Allan Mertner.   Powered by

Report an Issue  |  Terms of Service