Why when saving the image that the trackBar1 value is on i see a different saved image ?
private void trackBar1_Scroll(object sender, EventArgs e)
LoadPictureAt(trackBar1.Value, sender);
ConvertedBmp = ConvertTo24(trackBar1FileInfo[trackBar1.Value].FullName);
ConvertedBmp.Save(ConvertedBmpDir + "\\ConvertedBmp.bmp");
mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
backTexture = TextureLoader.FromStream(D3Ddev, mymem);
scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
timer1.Stop();
Button1Code();
timer1.Start();
b1 = new Bitmap(trackBar1FileInfo[trackBar1.Value].FullName);//ConvertedBmp;
b1.Save(ConvertedBmpDir + "\\b1.bmp");
The image in b1.bmp is not the same one i see in the pictureBox1 and the trackBar1FileInfo.
The trackBar1 Value is the same but the image is not. Maybe it happen since i'm moving too fast the trackBar1 so i can see it in the break point and therefore the image i see in the pictureBox is not the same one in the Value ?
This is the method LoadPictureAt:
private bool LoadPictureAt(int nIndex, object c)
bool bRet = false;
if (nIndex >= 0 && nIndex < trackBar1FileInfo.Length)
if (c.Equals(trackBar1))
pictureBox1.Load(trackBar1FileInfo[nIndex].FullName);
bRet = true;
if (bitmaps != null)
if (nIndex >= 0 && nIndex < bitmaps.Length)
if (c.Equals(trackBar2))
pictureBox1.Image = bitmaps[nIndex];
bRet = true;
return bRet;
For some reason the image i see in the pictureBox1 is not the same that i save in b1 when scrolling the trackBar1.
I tested again.
Now i see in pictureBox1 image and the ime is 09:20:
I moved the trackBar1 to the left and i see 09:20
And b1 on the hard disk is also 09:20 also same date 02/01/2015
But the Gifs on my hard disk i see they were created from image date 22/01/2015 time 14:10
I mean they created now but the image they were created from is not the same one.
It seems like for some reason b1 is different ? Not sure how.
In the trackBar1 scroll event i have:
private void trackBar1_Scroll(object sender, EventArgs e)
LoadPictureAt(trackBar1.Value, sender);
ConvertedBmp = ConvertTo24(trackBar1FileInfo[trackBar1.Value].FullName);
ConvertedBmp.Save(ConvertedBmpDir + "\\ConvertedBmp.bmp");
mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
backTexture = TextureLoader.FromStream(D3Ddev, mymem);
scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
timer1.Stop();
Button1Code();
timer1.Start();
b1 = new Bitmap(trackBar1FileInfo[trackBar1.Value].FullName);//ConvertedBmp;
b1.Save(ConvertedBmpDir + "\\b1.bmp");
trackBar2.Enabled = false;
if (!this.backgroundWorker1.IsBusy)
label2.Text = "מעבד נתונים";
this.backgroundWorker1.RunWorkerAsync();
else
this.backgroundWorker1.CancelAsync();
I do save b1 as it is in the pictureBox1 same trackBar1 value.
Then in the backgroundworker do event i'm doing:
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
BackgroundWorker bgw = (BackgroundWorker)sender;
if (bgw.CancellationPending == true)
return;
else
while (true)
bitmaps = new Bitmap[14];
bitmaps = ImagesComparison.get_images_with_clouds(b1);
for (int i = 0; i < bitmaps.Length; i++)
ConvertTo1or8Bit.BitmapToGIF(bitmaps[i], @"c:\convertedgifs\" + i.ToString("D6") + ".gif");
break;
With the line: bitmaps = new Bitmap[14]; or without for some reason it's creating the gifs file of something else not the same b1 saved on my hard disk.
The method BitmapToGif is:
public static void BitmapToGIF(Bitmap BitmapFile, string GIFFile)
using (Bitmap bitMap = new Bitmap(BitmapFile))
var codecInfo = ImageCodecInfo.GetImageEncoders().FirstOrDefault(x => x.FormatID == ImageFormat.Gif.Guid);
using (var paramsEncoder = new EncoderParameters(2))
paramsEncoder.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Compression, (long)EncoderValue.CompressionLZW);
paramsEncoder.Param[1] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 0L);
bitMap.Save(GIFFile, codecInfo, paramsEncoder);
I don't understand why the Gifs it's creating in the loop are different.
This is the get_images_with_clouds method:
public static Bitmap[] get_images_with_clouds(Bitmap radar_image)
int e = 0;
int f = 0;
int image_clock_area_x = 0;
int image_clock_area_y = 0;
int image_clock_area_x1 = 140;
int image_clock_area_y1 = 21;
Bitmap[] localImages;
localImages = new Bitmap[15];
Bitmap image;
image = new Bitmap(Properties.Resources.radar_without_clouds);
BitmapData bmD = null;
BitmapData bmD2 = null;
try
bmD = image.LockBits(new Rectangle(0, 0, image.Width, image.Height), ImageLockMode.ReadWrite,
PixelFormat.Format32bppArgb);
bmD2 = radar_image.LockBits(new Rectangle(0, 0, radar_image.Width, radar_image.Height), ImageLockMode.ReadOnly,
PixelFormat.Format32bppArgb);
IntPtr sc0 = bmD.Scan0;
unsafe
int* p = (int*)sc0.ToPointer();
int* p2 = (int*)bmD2.Scan0.ToPointer();
for (e = image_clock_area_x; e < image_clock_area_x + image_clock_area_x1; e++)
for (f = image_clock_area_y; f < image_clock_area_y + image_clock_area_y1; f++)
Color clock_color = Color.FromArgb(p2[e + f * bmD2.Width]);
p[e + f * bmD.Width] = clock_color.ToArgb();
image.UnlockBits(bmD);
radar_image.UnlockBits(bmD2);
catch
try
image.UnlockBits(bmD);
catch
try
radar_image.UnlockBits(bmD2);
catch
int c;
for (c = 0; c < localImages.Length; c++)
localImages[c] = new Bitmap(image);
Bitmap new_image = new Bitmap(Properties.Resources.radar_without_clouds);
Bitmap new_image1 = new Bitmap(Properties.Resources.radar_without_clouds);
Bitmap localbmptest = black_and_white(new_image, radar_image);
Image image1 = black_and_white(new_image, radar_image);
image1.Save(@"c:\temp\testclouds666.jpg");
Bitmap clouds = new Bitmap(image1);
int x;
int y;
int a;
int b;
int d = 0;
Bitmap redImage;
redImage = new Bitmap(512, 512);
using (Graphics g = Graphics.FromImage(redImage))
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half;
g.Clear(Color.Red);
BitmapData bmData = null;
BitmapData bmData2 = null;
BitmapData bmDataArray = null;
try
bmData = clouds.LockBits(new Rectangle(0, 0, clouds.Width, clouds.Height), ImageLockMode.ReadOnly,
PixelFormat.Format32bppArgb);
bmData2 = radar_image.LockBits(new Rectangle(0, 0, radar_image.Width, radar_image.Height), ImageLockMode.ReadOnly,
PixelFormat.Format32bppArgb);
IntPtr scan0 = bmData.Scan0;
IntPtr scan02 = bmData2.Scan0;
unsafe
int* p = (int*)scan0.ToPointer();
int* p2 = (int*)scan02.ToPointer();
double h, mm;
for (d = 0; d < localImages.Length; d++)
bmDataArray = localImages[d].LockBits(new Rectangle(0, 0, localImages[d].Width, localImages[d].Height), ImageLockMode.ReadWrite,
PixelFormat.Format32bppArgb);
IntPtr scan0Array = bmDataArray.Scan0;
int* pArray = (int*)scan0Array.ToPointer();
for (a = 0; a < new_image.Width; a++)
for (b = 0; b < new_image.Height; b++)
Color color1 = Color.FromArgb(p[a + b * bmData.Width]);
Color color2 = Color.FromArgb(p2[a + b * bmData2.Width]);
if (color1.R != 0 || color1.G != 0 || color1.B != 0)
h = color2.GetHue();
mm = RadarAnalysis.Hue2MMPerHour(h);
if (mm >= treshhold_array[14 - d])
pArray[a + b * bmDataArray.Width] = color2.ToArgb();
localImages[d].UnlockBits(bmDataArray);
clouds.UnlockBits(bmData);
radar_image.UnlockBits(bmData2);
catch (Exception error)
try
clouds.UnlockBits(bmData);
catch
try
radar_image.UnlockBits(bmData2);
catch
try
localImages[d].UnlockBits(bmDataArray);
catch
Logger.Write("Error Exception ==> " + error);
MessageBox.Show("Error Exception ==> " + error);
return localImages;
It's getting the same b1 variable i saved to the hard disk in the trackBar1 scroll event.
And still the Gifs files on the hard disk are not the same b1 image and not what i see on the saved b1 and in the pictureBox1.
Similar Messages
-
Why when updating the software on my iPad 2 ( as I was encouraged on iTunes) it wiped out my calendar and contacts list. All is gone that I spent hours putting them in the iPad.
I am new with the iPad. I opened iTunes hooked the cable up to sync and it asked me if I wanted to update the software. Not knowing any better I said yes. So when it was done, well all my information was gone, wiped out. So do I have to enter the information all over again. This never happened with my windows based computers. Help please.
-
Conversion failed when converting the varchar value to data type int
Hi, I am unable to resolve this error and would like some assistance please.
The below query produces the following error message -
Msg 245, Level 16, State 1, Line 1
Conversion failed when converting the varchar value 'NCPR' to data type int.
Select Pc2.Assess,
Select Pc1.Title
From Pc1
Where Pc1.Assess = Pc2.Assess
) [Title]
From Pc2
However, when I run the query below I get the results shown in the image . Ie. nothing. Pc1 & Pc2 are aliases and are the same table and the assess field is an int. I found NCPR in one cell but that column (prop) is not used in the query. The table
is nearly 25k rows.
SELECT * FROM Pc1 WHERE Pc1.Assess LIKE '%NCPR%' OR ISNUMERIC(Pc1.Assess) = 0
Thank youWHERE ISNUMERIC(id) = 1 and there are obviously no 'NCPR' records in the view as per my previous post.
That is a bad assumption - SQL Server does not have to evaluate the query in the order you are expecting it to.
Take this simple example
CREATE TABLE #example
col1 VARCHAR(50) NOT NULL
INSERT INTO #example VALUES ('1'), ('2'), ('NaN')
SELECT * FROM
SELECT * FROM #example
WHERE ISNUMERIC(col1) = 1
) X
(3 row(s) affected)
col1
1
2
(2 row(s) affected)
compare to
CREATE TABLE #example
col1 VARCHAR(50) NOT NULL
INSERT INTO #example VALUES ('1'), ('2'), ('NaN')
SELECT * FROM
SELECT * FROM #example
WHERE ISNUMERIC(col1) = 1
) X
WHERE col1 = 1
(3 row(s) affected)
col1
1
Msg 245, Level 16, State 1, Line 8
Conversion failed when converting the varchar value 'NaN' to data type int. -
Thank you for your help!!!
I've created a stored procedure to return results as xml. I'm having trouble figuring out why I'm getting the error message "Conversion failed when converting the nvarchar value '<tr>.....'
to data type int. It seems like the system doesn't know that I'm returning a string... Or, I'm doing something that I just don't see.
ALTER PROCEDURE [dbo].[p_getTestResults]
@xml NVARCHAR(MAX) OUTPUT
AS
BEGIN
CREATE TABLE #Temp
[TestNameId] int,
[MaxTestDate] [DateTime],
[Name] [nvarchar](50),
[Duration] [varchar](10)
DECLARE @body NVARCHAR(MAX)
;WITH T1 AS
SELECT DISTINCT
Test.TestNameId
, replace(str(Test.TotalTime/3600,len(ltrim(Test.TotalTime/3600))+abs(sign(Test.TotalTime/359999)-1)) + ':' + str((Test.TotalTime/60)%60,2)+':' + str(Test.TotalTime%60,2),' ','0') as Duration
,MaxTestDate = MAX(TestDate) OVER (PARTITION BY TM.TestNameId)
,TestDate
,TM.Name
,Test.TotalTime
,RowId = ROW_NUMBER() OVER
PARTITION BY
TM.TestNameId
ORDER BY
TestDate DESC
FROM
Test
inner join TestName TM on Test.TestNameID = TM.TestNameID
where not Test.TestNameID in (24,25,26,27)
INSERT INTO #Temp
SELECT
T1.TestNameId
,T1.MaxTestDate
,T1.[Name]
,T1.Duration
FROM
T1
WHERE
T1.RowId = 1
ORDER BY
T1.TestNameId
SET @body ='<html><body><H3>TEST RESULTS INFO</H3>
<table border = 1>
<tr>
<th> TestNameId </th> <th> MaxTestDate </th> <th> Name </th> <th> Duration </th></tr>'
SET @xml = CAST((
SELECT CAST(TestNameId AS NVARCHAR(4)) as 'td'
, CAST([MaxTestDate] AS NVARCHAR(11)) AS 'td'
, [Name] AS 'td'
, CAST([Duration] AS NVARCHAR(10)) AS 'td'
FROM #Temp
ORDER BY TestNameId
FOR XML PATH('tr'), ELEMENTS ) AS NVARCHAR(MAX))
SET @body = @body + @xml +'</table></body></html>'
DROP TABLE #Temp
RETURN @xml
END
closlYour dont need RETURN inside SP as you've declared @xml already as an OUTPUT parameter. Also you can RETURN only integer values using RETURN statement inside stored procedure as that's default return type of SP.
so just remove RETURN statement and it would work fine
To retrieve value outside you need to invoke it as below
DECLARE @ret nvarchar(max)
EXEC dbo.[P_gettestresults] @ret OUT
SELECT @ret
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
SSRS error "Conversion failed when converting the nvarchar value"
Hi folks!
After SCCM 2012 R2 upgrade, we have errors with self made reports:
An error has occurred during report processing. (rsProcessingAborted)
Cannot read the next data row for the dataset DataSet2. (rsErrorReadingNextDataRow)
Conversion failed when converting the nvarchar value '*****' to data type int.
I found several articles to see reporting services log file for possible WMI related errors, but none exists. SQL server is 2008R2, Runned mofcomp, and re-installed reporting services role, but problem remains.
I traced the dataset2 query:
SELECT
v_Collection_Alias.CollectionID ,v_Collection_Alias.Name
FROM fn_rbac_Collection(@UserSIDs) v_Collection_Alias
WHERE
v_Collection_Alias.CollectionType = 2
Any adwice is appreciated.
~Tuomas.Hi Tuomas,
What's the SQL Server version? To verify the the SQL Server version, please see
http://support.microsoft.com/kb/321185
SCCM 2012 R2 need SQL Server 2008 R2 SP1 with CU 6 or SQL Server 2008 R2 with SP2 (http://technet.microsoft.com/en-us/library/gg682077.aspx#BKMK_SupConfigSQLSrvReq).
If the SQL meets requirement, I would suggest you submit a thread to SQL forum to deal with the sql issue.
Thanks.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
when opening the iCloud settings I do not see an option for the iCloud T&Cs (OS 10.8 & iOS6)
which Apple says should appear automatically once the update is completed...
I am perplexed where you read that. It isn't true. The iPad is synced to the data available to all devices using the iCloud account if you have authorized it in the settings; PhotoStream, Contacts, Mail, Calendars, etc. That is how the iCloud works. -
Conversion failed when converting the varchar value 'undefined' to data typ
Conversion failed when converting the varchar value 'undefined' to data type int.
hi, i installed oracle insbridge following the instruction in the manual. in rate manager, when i tried to create a new "Normal rating" or "Underwriting", im getting the following exception
Server Error in '/RM' Application.
Conversion failed when converting the varchar value 'undefined' to data type int.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Conversion failed when converting the varchar value 'undefined' to data type int.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Conversion failed when converting the varchar value 'undefined' to data type int.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1948826
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844747
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
System.Data.SqlClient.SqlDataReader.HasMoreRows() +157
System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +197
System.Data.SqlClient.SqlDataReader.Read() +9
System.Data.SqlClient.SqlCommand.CompleteExecuteScalar(SqlDataReader ds, Boolean returnSqlValue) +50
System.Data.SqlClient.SqlCommand.ExecuteScalar() +150
Insbridge.Net.Fwk.DAO.DataAccess.ScalarQuery(String connectionString, String command, Transaction transType, Object[] procParams) +110
[Exception: Cannot Execute SQL Command: Conversion failed when converting the varchar value 'undefined' to data type int.]
Insbridge.Net.Fwk.DAO.DataAccess.ScalarQuery(String connectionString, String command, Transaction transType, Object[] procParams) +265
Insbridge.Net.Fwk.DAO.SqlProcessor.ExecuteScalarQueryProc(String subscriber, String datastore, String identifier, String command, Transaction transType, Object[] procParams) +101
Insbridge.Net.Fwk.DAO.SqlProcessor.ExecuteScalarQuery(String subscriber, String identifier, String command) +22
Insbridge.Net.RM.IBRM.ExeScalar(String cmd, Object[] paramsList) +99
Insbridge.Net.RM.Components.Algorithms.AlgEdit.Page_Load(Object sender, EventArgs e) +663
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
my insbridge versions are as follows
IBRU 4.0.0 Copyright ©2010, Oracle. All rights reserved. - Version Listing
RMBUILD.DLL 4.0.0.0 (x86)
SRLOAD.DLL 3.13.0 (x86)
IBRM v04.00.0.17
IB_CLIENT v04.00.0.00
RM.DLL 4.00.0 (x86)
IBFA 3.0.2
OS: Windows Server 2003
DB: Sql Server 2008
Browser: IE8
how do i solve this, please helpThis is an error due to conversion failed from character string to int datatype. Infact, the table column contains "NO" value which you are trying to convert to Int/SUM which is illegal. Without your code and table structure, its difficult to pinpoint your
actual issue. But check, all columns for value "NO". -
Conversion failed when converting the varchar value to data type int error
Hi, I am working on a report which is off of survey information and I am using dynamic pivot on multiple columns.
I have questions like Did you use this parking tag for more than 250 hours? If yes specify number of hours.
and the answers could be No, 302, 279, No and so on....
All these answers are of varchar datatype and all this data comes from a partner application where we consume this data for internal reporting.
When I am doing dynamic pivot I get the below error.
Error: Conversion failed when converting the varchar value 'No' to data type int.
Query
DECLARE @Cols1 VARCHAR(MAX), @Cols0 VARCHAR(MAX), @Total VARCHAR(MAX), @SQL VARCHAR(MAX)
SELECT @Cols1 = STUFF((SELECT ', ' + QUOTENAME(Question) FROM Question GROUP BY Question FOR XML PATH('')),1,2,'')
SELECT @Cols0 = (SELECT ', COALESCE(' + QUOTENAME(Question) + ',0) as ' + QUOTENAME(Question) FROM Question GROUP BY Question FOR XML PATH(''))
SET @SQL = 'SELECT QID, QNAME' + @Cols0 + '
FROM (SELECT QID, QNAME, ANSWERS, Question
FROM Question) T
PIVOT (MAX(ANSWERS) FOR Question IN ('+@Cols1+')) AS P'
EXECUTE (@SQL)
I am using SQL Server 2008 R2.
Please guide me to resolve this.
Thanks in advance..........
Ionecreate table questions (QID int, QNAME varchar(50), ANSWERS varchar(500), Question varchar(50))
Insert into questions values(1,'a','b','c'), (2,'a2','b2','c2')
DECLARE @Cols1 VARCHAR(MAX), @Cols0 VARCHAR(MAX), @Total VARCHAR(MAX), @SQL VARCHAR(MAX)
SELECT @Cols1 = STUFF((SELECT ', ' + QUOTENAME(Question) FROM Questions GROUP BY Question FOR XML PATH('')),1,2,'')
SELECT @Cols0 = (SELECT ', COALESCE(' + QUOTENAME(Question) + ',''0'') as ' + QUOTENAME(Question) FROM Questions GROUP BY Question FOR XML PATH(''))
SET @SQL = 'SELECT QID, QNAME' + @Cols0 + '
FROM (SELECT QID, QNAME, ANSWERS, Question
FROM Questions) T
PIVOT (MAX(ANSWERS) FOR Question IN ('+@Cols1+')) AS P'
EXECUTE (@SQL)
drop table questions -
On Saturday I upgraded to version 10 beta, after installing the version, the options box in the Tools tab will not function. When selected the screen is "blocked out" and the only way forward is to Ctrl+Alt+Del to reset the browser.
I have tried several times to re install but the settings are dragged into the new version. If this keeps on happening I will revert to the original browser.Reload web page(s) and bypass the cache.
* Press and hold Shift and left-click the Reload button.
* Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
* Press "Cmd + Shift + R" (MAC)
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
* Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
* Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode -
Hi there. I'm having a problem with my external hard drive. Actually with only one of them (others seem to be ok...). The problem is that when clicking the right mouse button (or using other ways to do the same), in the drop-down list there isn't an option for "create new folder". Please, can anyone help with this issue?
The drive is NTFS formated. Most probably that's the reason, but there is some info on the drive which I wouldn't like to loose. If there is a way to re-format the drive and save the files, that would be great. If there isn't such a way, then please, tell me how to re-format it. But bear in mind as well that I'm using Parellels and the drive is to be used in Mac and Win modes, both. Just to add some more info: my other drive is FAT32 formated and all seems to go well with it.
-
Dear Experts
I am getting the following error message while adding item in Item Master data. I have modified the following SBO_SP_transactionNotification in SQL server after that could not able to add the item
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(20), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, [U]pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
select @error = 0
select @error_message = N'Ok'
-- IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
-- Select the return values
select @error, @error_message
endHi Rathna,
Just put the SP like this, without the -- before the IF. A -- marks the line as a command therefore you need to uncomment and it will work.
IF @OBJECT_TYPE = '59' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')
BEGIN
IF EXISTS(
SELECT T0.Price FROM IGN1 T0
where IsNull(T0.Price, '0') = '0' and T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
SELECT @ERROR=1,@ERROR_MESSAGE='Please insert the price !'
END
end
Hope it helps -
I have several albums that I own the actual CD, some of those CD's are offered on the store (example: America's Greatest Hits) After downloading those CD and asking to get album artwork even though the artwork is available online the store says that artwork is unavailable. Also it would be more than helpful to allow artwork from some online sites to be downloaded like it was about 2 years ago. Since then it is very difficult to drag and pop in missing artwork.
Jim Hadley
<E-mail Edited by Host>You might have better luck posting in the iTunes forum.
-
WHY WHEN ENCODING THE SCREEN DOESN'T GO TO SLEEP MODE
I am using iDVD with my power house iMac i7 great machine by the way, but when it is encoding it won't take the screen to sleep mode, this has always happen with iDVD since i had my old intel core do 20 inch 2 gigahertz, and my last iMac had in burn screen, because of this problem, I am afraid that if this would happen again with my new iMac 27 inch what I do is put the screen brightness down to the minimum. But apple should consider to put a sleep mode button for the LCD panel on iMacs.
well my last iMac had one on the lower left corner and you could see it, it was some blotchy stain. like if it was an icon imprint but it didn't show any letters or it was define it look more like a black stain.
-
guys am new to garageband. I am trying drag a non vocal track into my project, open another vocal track and and record my voice with a mic via my interface. When i hit play I hear the non vocal track, but when I hit record everything stops for a second including the non vocal track and then continue playing, and recording. why cant I record on the fly like other programs. what am I doing wrong. Help is greatly appreciated
GB doesn't offer "punch-in" recording. But you can easily set an earlier recording point, so you can listen to as much as you want from the audio track, and later cut your recorded snippet to the desired length.
-
I really need help with this. If I open a jpg in PS6 and crop it, the file transforms from a locked background layer to Layer 0 which is not locked. Then if I want to Save as a jpg I must flatten the layers as it is now a PSD file. SO frustrated! Anyone know what's going on?
Enable the Delete Cropped Pixels in the crop tool options up top—this is the phrasing in my PS-CC. I assume PS-CS6 has a similar crop tool option.
If you don’t delete the cropped pixels, they are just hidden, then a layer needs to be created to hold the hidden pixels.
Maybe you are looking for
-
Is there a way to change the thumbnails for movies/videos?
This may be more of a Leopard question, but I'm wondering if there's a way to change the thumbnail that OSX and Front Row display of movie files. I think this feature is awesome but would love to have more control over it so I can pick a frame from t
-
IMac G5 hangs when downloading and installing updates to 10.5
My iMac G5 hangs when I try to download and install the recent large update to 10.5. Message says restart to complete the installation, but after restart the messages says it is configuring the software, but progress bar shows no progress after sever
-
Yosemite Server Vs. Windows Server 2012
Hello, I wonder does Yosemite server can replace Windows Server 2012 and work as full as server operation system? In services: DNS DHCP Webserver FTP Mailserver Maybe Virtualization
-
Urgent help(xml, java and asp)
Hi all, I,m new with XML and i have to convert a VB application that connects to an ASP using Microsoft XML and I need to know if I can connect from a java application to an ASP using XML for transfering the infornation. In the ASP side it uses DOM,
-
Condition Category field in Condition type config
Hi, Can any body detaily explain me what is mean by condition category and what is the use of it? I think, there is a relationship between price manually editable and condition category? Laxman