CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> IDE/GUI

 Safely Deleting a Control

Print topic Send  topic

Author Message
greengraduate

Posts: 6
Posted: 07/13/2006, 2:44 AM

Hi,

Had my doubts about CodeCharge, but now I reckon it's going to save me heaps of hours off my developemnt time, sweet stuff.

Being new, my first post is a simple one. So far I have read through the User Guide and now trying out a few things in CodeCharge and I have searched for what I am looking for.

Qn:

What is the proper way to delete a control in CodeCharge? When I delete a control (e.g. ListBox, listbox1) in design mode on a page (mypage), it disappears as expected, but the code in my PHP page (mypage.php) still has code relating to this control (listbox1). I tried deleting the control through the Project Explorer and by right-clicking on it and deleting it, both don't seem to do the job. So eveytime I change a field in the database I am recreating the page (mypage), which is taking a long time and frustrating. Any ideas?

Thanks



_________________
'The only constant thing about software is change' - ?
View profile  Send private message
peterr


Posts: 5971
Posted: 07/13/2006, 2:52 AM

This looks strange. Deleting a control, especially by right-clicking on it should not leave any related PHP code. And if the control is no longer visible in the Project Explorer then it just doesn't exist anymore. The only possible problem I can think of is that possibly you've modified the generated code (instead of using events)? Try highlighting all the code (Ctrl+A) in mypage.php and delete all of it, then switch to the Design mode and back again to the Code mode - then check if the code still contains references to the deleted control.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
jeden


Posts: 20
Posted: 07/13/2006, 3:02 AM

Everytime I do changes involving code generate by CCS (such as deleting a control), I always right click the page in the project explorer and select "Generate Code". This forces CCS to update the source files (for a page named "pagename", the files are pagename.php and if used pagename_events.php).

Maybe this is what you missed

Antonio
_________________
Antonio Bello

Elapsus - Software & Solutions
http://www.elapsus.com

Developer's Corner
http://www.developer-corner.com
View profile  Send private message
greengraduate

Posts: 6
Posted: 07/13/2006, 4:41 AM

Thanks peterr and jeden.

I tried what jeden suggested, and it did not work. So I created another page and then tried generating the code, and it worked on the other page (just using one database table).

I then tried what peterr suggested, on mypage.php - the one I want to fix, and it did not work either.

It could be that while trying to make it work I changed something I am not supposed to. If only the listbox, the reference of which I want to remove, showed up in the project explorer then I could at least know why it is being referenced.

I will try creating the page from scratch again and see if I ran into the same problem.

Thanks.
_________________
'The only constant thing about software is change' - ?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.