• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Nuts

Participant ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

Hi all. The logic I am trying to implement is not working properly.Could you check my code ? It dropped me nut..
TOPICS
Advanced techniques

Views

305

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

please do describe your attempted logic in plain English - not many
people have the time to go through all that code of yours and try to
FIGURE OUT your logic and then figure out what's wrong with it... well,
at least i don;t have that much time...

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

That is not helpful. I couldnt figure out that is why I am posting here.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 31, 2007 Jul 31, 2007

Copy link to clipboard

Copied

> That is not helpful.

Seriously neither is posting 100+ lines of code with a note that "its not working properly". How do you expect people to know what the code IS suppposed to be doing unless you give a description of the desired results and the problem? Put a little effort into it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 01, 2007 Aug 01, 2007

Copy link to clipboard

Copied

LATEST
I assume all of you as a genius. :D

It fixed..
<cfset q = snum1 - 1>
<cfif s1.msnum eq 2>
<cfquery name="upt2" dataSource="#FormVector#">
update genbid_login1 set snum = snum -1
where status = 'A' and role = 'LT'
</cfquery>
<cfelseif q lt s1.mxsnum and snum1 gte 1>
<cfquery name="upt2" dataSource="#FormVector#">
update genbid_login1 set snum = snum -1
where snum > #q# and status = 'A' and role = 'LT'
</cfquery>
<cfelseif snum1 eq s1.mxsnum>

<cfquery name="upt2" dataSource="#FormVector#">
update genbid_login1 set snum = snum -1
where snum = #s1.mxsnum# and status = 'A' and role = 'LT'
</cfquery>

</cfif>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation