PDA

View Full Version : There is nothing you can't do in SetupBuilder!



NewsArchive
04-13-2011, 12:47 AM
SetupBuilder is the best, hands down!

OK -- so I had to update my style sheet in my new release. There were two bugs in our style sheet (I forgot three characters twice) and then I wanted to add a whole new section to the bottom for our new availability calendar.

You are more than welcome to see it going here:

https://remote.roommaster.net/iqreservations/asp/home.asp (Click on new reservation and then next to see our new availability calendar)



But anyway ... back to SetupBuilder.

I couldn't wipe out my style.css (style sheet) with the new one because we have 1,000+ clients and they all have their own styles created by their web developers.

I could write a program to fix it - but why write programs when you have SetupBuilder!

So, during our upgrade ... I had two tasks.

1. Fix two lines in the CSS (style sheet)
2. Append the new portion of the style sheet at the bottom

I did try TYPE changes.tmp >> style.css but the RUN command didn't work in SetupBuilder.

But .... no need!

Did the whole thing in SetupBuilder!

Check it out.

If %IQUPDATESTYLESHEET% Equals "1" Then
Display Message Box "Press OK to update the Default style sheet (style...." -- "Updating Style Sheet"
Progress Dialog: Set Status Text #1 to "Updating Style Sheet ..."

/* find the two lines where the mistake is */
Set Variable %IQLINE1% to FUNCTION:Find Line ".rteT td, tr { /* rate breakdown table */" from "%_SB_INSTALLDIR%\IQReservations\stylesheets\style. css"
Set Variable %IQLINE2% to FUNCTION:Find Line ".rteH td, tr{ /* rate breakdown headers - day of week */" from "%_SB_INSTALLDIR%\IQReservations\stylesheets\style. css"

/* fix the mistakes! */
If %IQLINE1% Greater Than "0" Then
Text File: Replace Line "%IQLINE1%" from "%_SB_INSTALLDIR%\IQReservations\stylesheets\style. css" -- .rteT td, ..rteT tr { /* rate breakdown table */
End
If %IQLINE1% Greater Than "0" Then
Text File: Replace Line "%IQLINE2%" from "%_SB_INSTALLDIR%\IQReservations\stylesheets\style. css" -- .rteH td, rteH tr { /* rate breakdown headers - day of week */
End

/* read the temporary file that needs to be appended and add it to the users style sheet */
Loop (68 Times)
Set Variable %IQLINECOUNTER% to (Increment by 1)
Set Variable %IQNEWLINE% to FUNCTION:Get Line "%IQLINECOUNTER%" from "%_SB_INSTALLDIR%\IQReservations\stylesheets\availt able.tmp"
Text File: Insert Line "0" to "%_SB_INSTALLDIR%\IQReservations\stylesheets\style. css" -- %IQNEWLINE%
End
End

/* delete the installed work file */
Delete Files "%_SB_INSTALLDIR%\IQReservations\stylesheets\availt able.tmp"



Now, tell me that Fredrich didn’t think of EVERYTHING!

Robert Paresi

NewsArchive
04-13-2011, 12:53 AM
Robert,

> Now, tell me that Fredrich didn't think of EVERYTHING!

He got it all... I have proof!

Lee White

NewsArchive
04-13-2011, 12:54 AM
ROFLMAO!!! Good one Lee! I needed that.

Don

NewsArchive
04-13-2011, 12:54 AM
Sometimes your humor sinks to new lows.... <g>

Jane Fleming

NewsArchive
04-13-2011, 12:54 AM
Jane,

> Sometimes your humor sinks to new lows.... <g>

Thank you... I try!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://www.cpcs-inc.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
04-13-2011, 12:55 AM
> Sometimes your humor sinks to new lows.... <g>

I had a sinking feeling someone was going to say that<g>.

:-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
04-13-2011, 02:15 AM
It was pretty wet, or should that be dry... <vbg>

J André Labuschagné

NewsArchive
04-13-2011, 02:15 AM
> It was pretty wet, or should that be dry... <vbg>

:-)

Charles



--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms - Now with PNG support!
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
04-15-2011, 12:30 AM
<ROFL>!!!!!!!

:)

Friedrich

NewsArchive
04-15-2011, 12:30 AM
Love it. Friedrich is a genius.

Greg Berthume

NewsArchive
04-15-2011, 12:31 AM
>
> SetupBuilder is the best, hands down!
>

Thank you so much for your kind words!

Friedrich